[英]npm install failes with ERR! tar.unpack (raspi)
I try to install Selenium Code Line Runner following this tutorial 我尝试按照本教程安装Selenium Code Line Runner
https://www.seleniumhq.org/selenium-ide/docs/en/introduction/command-line-runner/ https://www.seleniumhq.org/selenium-ide/docs/en/introduction/command-line-runner/
I managed to sudo apt-get install nodejs
and sudo apt-get install npm
but I failed with installing selenium-side-runner via sudo npm install -g selenium-side-runner
我设法sudo apt-get install nodejs
和sudo apt-get install npm
但通过sudo npm install -g selenium-side-runner
安装selenium-side-runner失败
I get the following error: 我收到以下错误:
npm ERR! tar.unpack ...
See also: error messages 另请参阅: 错误消息
I stumbled upon some tricks as follows: 我偶然发现了一些技巧,如下所示:
sudo npm cache clean
and retry didn't work sudo npm cache clean
试不起作用 sudo rm -r /usr/local/lib/node_modules/selenium-side-runner
and retry didn't work sudo rm -r /usr/local/lib/node_modules/selenium-side-runner
和重试不起作用 Any other ideas? 还有其他想法吗?
NPM的更新做到了!
sudo npm install -g npm@latest
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.