当我运行命令sudo npm install truffle-contract
时,它给了我这个错误:
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/debris/bignumber.js.git /home/ubuntu/.npm/_cacache/tmp/git-clone-777489e7
npm ERR! /home/ubuntu/.npm/_cacache/tmp/git-clone-777489e7/.git: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2017-12-26T05_11_27_119Z-debug.log
答案 0 :(得分:0)
有同样的问题。如果从安装命令中删除sudo
,则可以正常工作。