4

我像这样使用 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

谢谢你的帮助

4

0 回答 0