node.js npm -v 报错 Callback called more than once.

Posted misscai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了node.js npm -v 报错 Callback called more than once.相关的知识,希望对你有一定的参考价值。

(一) 报错展示

 技术图片

 


 

 (二) 解决方案

  用记事本 打开安装目录下的npm.cmd文件

  技术图片

   将标蓝的这行删掉

   技术图片

 


 

  (三) 原因分析

    字面意思就是  多次调用回掉     

   看了网上的好多分析,感觉也解释的不是很清楚。我现在也不是很明白为什么 !! 如果有大佬明白希望能留言学习学习!!

   之前我的是好用的,不知道为什么突然就报错了!!

 


 

 

 

 

 

      成都!!

 

以上是关于node.js npm -v 报错 Callback called more than once.的主要内容,如果未能解决你的问题,请参考以下文章

node.js关于node.js,如何解决npm should be run outside of the Node.js REPL, in your normal shell报错?

node.js关于node.js,如何解决npm should be run outside of the Node.js REPL, in your normal shell报错?

node.js关于node.js,如何解决npm should be run outside of the Node.js REPL, in your normal shell报错?

window环境下npm install node-sass报错

npm install一直报错

安装npm后,nrm ls 报错internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ‘string‘, value)(代码片