我正在尝试在Ubuntu 16.04
和npm 6.5.0
上安装etherlime
sudo npm install etherlime
即使我用sudo运行上面的命令,它也会给我这个错误:
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/LimeChain/solidity-coverage.git /home/username/.npm/_cacache/tmp/git-clone-823333ab
npm ERR! /home/username/.npm/_cacache/tmp/git-clone-823333ab/.git: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/username/.npm/_logs/2019-01-07T08_00_45_775Z-debug.log
发布于 2019-01-07 19:08:30
我从未使用过etherlime,但在使用npm命令时,您不需要使用sudo
。可能npm的安装方式有误,或者你的目录权限有问题。试试这个:sudo chown -R username directory
。
我需要错误日志来了解问题所在,但请记住在子目录中使用npm,而不是在用户的主目录中。
mkdir folderName
cd folderName
npm install etherlime
你会发现这个answer很有用。
显然,在尝试此之前,您必须全局安装以太坊(npm install -g etherlime
)
发布于 2019-01-07 19:13:46
https://stackoverflow.com/questions/54070595
复制相似问题