sudo npm install -g ganache-cli未处理拒绝错误:命令失败:/ usr / bin / git clone --depth = 1 -q -b browserifyCompatible git://github.com/frozeman/WebSocket-Node.git / home / coinmark-003 / .npm / _cacache / tmp / git-clone-b1f6d4d6 /home/coinmark-003/.npm/_cacache/tmp/git-clone-b1f6d4d6/.git:权限被拒绝
at ChildProcess.exithandler (child_process.js:276:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Socket.stream.socket.on (internal/child_process.js:336:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:561:12)
scrypt@6.0.3 preinstall / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / scrypt node node-scrypt-preinstall.js
错误:错误:命令失败:./ configure ./configure:line 1904:config.log:Permission denied ./configure:line 1914:config.log:Permission denied
/ usr / local / bin / ganache-cli - > /usr/local/lib/node_modules/ganache-cli/cli.js
keccak@1.4.0 install / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / keccak npm run rebuild || echo“Keccak绑定编译失败 . 将使用纯JS实现 . ” keccak@1.4.0 rebuild / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / keccak node-gyp rebuild
gyp ERR!配置错误gyp ERR!堆栈错误:EACCES:权限被拒绝,mkdir '/usr/local/lib/node_modules/ganache-cli/node_modules/ganache-core/node_modules/keccak/build' gyp ERR! System Linux 4.15.0-39-generic gyp ERR!命令"/usr/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 / ganache-cli / node_modules / ganache-core / node_modules / keccak gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR!不行npm ERR!代码ELIFECYCLE npm ERR!错误1 npm ERR! keccak@1.4.0 rebuild: node-gyp rebuild
npm ERR!退出状态1 npm ERR!错误的ERR!在keccak@1.4.0重建脚本失败 . 错误的ERR!这可能不是npm的问题 . 上面可能有额外的日志记录输出 .
错误的ERR!可以在以下位置找到此运行的完整日志:npm ERR! /home/coinmark-003/.npm/_logs/2018-12-01T19_36_44_354Z-debug.log Keccak绑定编译失败 . 将使用纯JS实现 .
scrypt@6.0.3 install / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / scrypt node-gyp rebuild
gyp ERR!配置错误gyp ERR!堆栈错误:EACCES:权限被拒绝,mkdir'/ usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / scrypt / build'gyp ERR! System Linux 4.15.0-39-generic gyp ERR!命令“/ usr / 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 / ganache-cli / node_modules / ganache-core / node_modules / scrypt gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR!不好
secp256k1@3.5.2 install / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / secp256k1 npm run rebuild || echo“Secp256k1绑定编译失败 . 将使用纯JS实现 . ” secp256k1@3.5.2 rebuild / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / secp256k1 node-gyp rebuild
gyp ERR!配置错误gyp ERR!堆栈错误:EACCES:权限被拒绝,mkdir '/usr/local/lib/node_modules/ganache-cli/node_modules/ganache-core/node_modules/secp256k1/build' gyp ERR! System Linux 4.15.0-39-generic gyp ERR!命令"/usr/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 / ganache-cli / node_modules / ganache-core / node_modules / secp256k1 gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR!不行npm ERR!代码ELIFECYCLE npm ERR!错误1 npm ERR! secp256k1@3.5.2 rebuild: node-gyp rebuild
npm ERR!退出状态1 npm ERR!错误的ERR!在secp256k1@3.5.2重建脚本失败 . 错误的ERR!这可能不是npm的问题 . 上面可能有额外的日志记录输出 .
错误的ERR!可以在以下位置找到此运行的完整日志:npm ERR! /home/coinmark-003/.npm/_logs/2018-12-01T19_36_45_180Z-debug.log Secp256k1绑定编译失败 . 将使用纯JS实现 .
sha3@1.2.2 install / usr / local / lib / node_modules / ganache-cli / node_modules / ganache-core / node_modules / sha3 node-gyp rebuild
gyp ERR!配置错误gyp ERR!堆栈错误:EACCES:权限被拒绝,mkdir '/usr/local/lib/node_modules/ganache-cli/node_modules/ganache-core/node_modules/sha3/build' gyp ERR! System Linux 4.15.0-39-generic gyp ERR!命令"/usr/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 / ganache-cli / node_modules / ganache-core / node_modules / sha3 gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR!不行npm WARN可选SKIPPING OPTIONAL DEPENDENCY:scrypt@6.0.3(node_modules / ganache-cli / node_modules / ganache-core / node_modules / scrypt):npm WARN可选SKIPPING OPTIONAL DEPENDENCY:scrypt@6.0.3 install: node-gyp rebuild
npm WARN可选跳过可选的依赖性:退出状态1
错误的ERR!代码ELIFECYCLE npm ERR!错误1 npm ERR! sha3@1.2.2安装: node-gyp rebuild
npm ERR!退出状态1 npm ERR!错误的ERR! sha3@1.2.2安装脚本失败 . 错误的ERR!这可能不是npm的问题 . 上面可能有额外的日志记录输出 .
错误的ERR!可以在以下位置找到此运行的完整日志:npm ERR! /home/coinmark-003/.npm/_logs/2018-12-01T19_36_46_118Z-debug.log