如何解决npm ERR!代码ERR_INVALID_OPT_VALUE

时间:2018-03-29 11:23:54

标签: node.js npm debian-stretch

我使用root帐户在Debian9上安装了nodejs和npm,因为npm不包含在旧版debian软件包中:

curl -sL https://deb.nodesource.com/setup_8.x | bash -
    .../...
## Run `apt-get install nodejs` (as root) to install Node.js v8.x and npm

:~# 
:~# apt-get install -y nodejs

现在我想用npm安装一些模块或者更新npm并且我收到了这条错误信息

:~# npm cache clean -f
npm WARN using --force I sure hope you know what you are doing.

:~#  npm install -g npm
npm ERR! code ERR_INVALID_OPT_VALUE
npm ERR! The value "4294967295" is invalid for option "family"

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-03-29T11_17_37_357Z-debug.log

此处是调试日志文件的链接:Justpasteit

感谢您的帮助

0 个答案:

没有答案