安装Nodemon时出错-从未调用cb()

时间:2019-03-02 02:58:17

标签: node.js npm nodemon

我尝试过几次安装nodemon,但它继续产生相同的错误。我已经重新安装了Node.js两次,但没有解决问题。我正在运行macOS版本10.14.3。

我尝试过的安装命令:

sudo npm install -g nodemon
nom install nodemon

这是错误日志:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'nodemon' ]
2 info using npm@6.7.0
3 info using node@v8.12.0
4 verbose npm-session 5016b457090df714
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/nodemon 129ms
8 silly pacote tag manifest for nodemon@latest fetched in 139ms
9 timing stage:loadCurrentTree Completed in 247ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 46ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule nodemon@1.18.10 checking installable status
17 http fetch GET 200 https://registry.npmjs.org/chokidar 30ms (from cache)
18 http fetch GET 200 https://registry.npmjs.org/debug 31ms (from cache)
19 http fetch GET 200 https://registry.npmjs.org/supports-color 30ms (from cache)
20 silly pacote range manifest for chokidar@^2.1.0 fetched in 35ms
21 silly resolveWithNewModule chokidar@2.1.2 checking installable status
22 silly pacote range manifest for debug@^3.1.0 fetched in 34ms
23 silly resolveWithNewModule debug@3.2.6 checking installable status
24 silly pacote range manifest for supports-color@^5.2.0 fetched in 32ms
25 silly resolveWithNewModule supports-color@5.5.0 checking installable status
26 timing npm Completed in 619ms
27 error cb() never called!
28 error This is an error with npm itself. Please report this error at:
29 error <https://npm.community>

1 个答案:

答案 0 :(得分:0)

此问题通过从https://nodejs.org/en/download/重新安装节点来解决。从自制软件重新安装并不能解决问题。