节点MODULE_NOT_FOUND [英] Node MODULE_NOT_FOUND
本文介绍了节点MODULE_NOT_FOUND的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚升级到节点版本9.0.0,现在在尝试使用npm install时在命令行中收到此错误
I just upgraded to node version 9.0.0 and am now getting this error in the command line when trying to use npm install
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/util/types'
我正在使用:
- OSX 10.10.5
- 节点版本9.0.0
- NPM版本5.5.1
其他信息:我还试图通过Laravel 5.5项目来做到这一点.这是我更新节点版本的方式:如何更新节点.js?
Extra information: I am also trying to do this with a Laravel 5.5 project. This is how I update my version of node: How do I update Node.js?
推荐答案
运行
rm -rf /usr/local/lib/node_modules/npm
然后在大多数情况下重新安装Node.js即可
and then re-install Node.js will work in most cases
这篇关于节点MODULE_NOT_FOUND的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文