无法安装 npm,在执行 FCC node.js 挑战时出现 module.js 错误
Not able to install npm, getting module.js error which doing FCC node.js challenge
module.js:471
throw err;
^
Error: Cannot find module 'process-nextick-args'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/ubuntu/.nvm/versions/node/v6.11.2/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Uh oh! npm had a problem! { Error: Command failed: "/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm" --version
module.js:471
throw err;
尝试进行 node.js 的 FCC 首次挑战,但卡在安装和验证 npm 上。试过google的错误去调试它却发现只有问题没有答案呢!有人可以帮忙吗?
这看起来像是 npm 上的错误。我建议更新 Node.js 和 npm。
运行 在控制台上执行以下命令:
$ nvm install 6 # This installs Node.js version 6.11.3, current latest version of Node.js 6.x
$ npm install --global npm # Install latest version of npm
I found this issue happen on other learners of Free Code Camp
module.js:471
throw err;
^
Error: Cannot find module 'process-nextick-args'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/ubuntu/.nvm/versions/node/v6.11.2/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Uh oh! npm had a problem! { Error: Command failed: "/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm" --version
module.js:471
throw err;
尝试进行 node.js 的 FCC 首次挑战,但卡在安装和验证 npm 上。试过google的错误去调试它却发现只有问题没有答案呢!有人可以帮忙吗?
这看起来像是 npm 上的错误。我建议更新 Node.js 和 npm。
运行 在控制台上执行以下命令:
$ nvm install 6 # This installs Node.js version 6.11.3, current latest version of Node.js 6.x
$ npm install --global npm # Install latest version of npm
I found this issue happen on other learners of Free Code Camp