Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
babycamel opened this issue Nov 28, 2020 · 0 comments
Open

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

babycamel opened this issue Nov 28, 2020 · 0 comments

Comments

@babycamel
Copy link

I am reporting:

an install issue as follows:

% sudo npm install -g dat
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/usr/local/bin/dat -> /usr/local/lib/node_modules/dat/bin/cli.js

utp-native@1.7.3 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

sodium-native@2.4.9 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: utp-native@1.7.3 (node_modules/dat/node_modules/discovery-swarm/node_modules/utp-native):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utp-native@1.7.3 install: node-gyp-build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sodium-native@2.4.9 (node_modules/dat/node_modules/sodium-native):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sodium-native@2.4.9 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.

@babycamel babycamel changed the title Install eroro with dat using npm on MacBook Pro (Intel version) Install error with dat using npm on MacBook Pro (Intel version) Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant