我看到有很多类似的问题,但没有一个解决方案有效,请帮助我。
root@ubuntu:/home/ash/inbox# npm install --save web3@1.0.0-beta.26
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz@1.0.7: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b browserifyCompatible git://github.com/frozeman/WebSocket-Node.git /root/.npm/_cacache/tmp/git-clone-acd6687c
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-acd6687c': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-04-06T17_16_42_168Z-debug.log
root@ubuntu:/home/ash/inbox#