#1193·dat

Install error with dat using npm on MacBook Pro (Intel version)

Author: babycamelCreated Nov 28, 2020Updated Nov 28, 2020

I am reporting:

an install issue as follows:

% sudo npm install -g dat
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported /usr/local/bin/dat -> /usr/local/lib/node_modules/dat/bin/cli.js

[email protected] install /usr/local/lib/node_modules/dat/node_modules/discovery-swarm/node_modules/utp-native node-gyp-build

gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/Users/rbeard/Library/Caches/node-gyp/14.15.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/dat/node_modules/discovery-swarm/node_modules/utp-native/.node-gyp" gyp WARN install got an error, rolling back install gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/dat/node_modules/discovery-swarm/node_modules/utp-native/.node-gyp' gyp ERR! System Darwin 19.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/dat/node_modules/discovery-swarm/node_modules/utp-native gyp ERR! node -v v14.15.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok

[email protected] install /usr/local/lib/node_modules/dat/node_modules/sodium-native node-gyp-build "node preinstall.js" "node postinstall.js"

autoconf is required, but wasn't found on this system ./configure: line 5: ./configure: No such file or directory /usr/local/lib/node_modules/dat/node_modules/sodium-native/preinstall.js:119 if (err) throw err ^

Error: ./configure exited with 127 at ChildProcess. (/usr/local/lib/node_modules/dat/node_modules/sodium-native/preinstall.js:149:25) at ChildProcess.emit (events.js:315:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/dat/node_modules/discovery-swarm/node_modules/utp-native): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp-build npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/dat/node_modules/sodium-native): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp-build "node preinstall.js" "node postinstall.js" npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

Is there a fix for this? I can try installing autoconf but it looks like there are other issues as well. Thanks.