我正在使用64位Windows 7旗舰版,当我在控制台中运行Gulp时,我想用我的项目与Gulp发生下面的错误。module.js:471抛出错误:找不到模块
module.js:471
throw err;
^
Error: Cannot find module 'C:\Users\Tiger\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js'
所以,我不想使用上面的问题吞咽。那么我现在做什么?
我正在使用64位Windows 7旗舰版,当我在控制台中运行Gulp时,我想用我的项目与Gulp发生下面的错误。module.js:471抛出错误:找不到模块
module.js:471
throw err;
^
Error: Cannot find module 'C:\Users\Tiger\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js'
所以,我不想使用上面的问题吞咽。那么我现在做什么?
LON的Linux CentOS的:
rm -rf /usr/lib/node_module
yum reinstall npm
不更新NPM
在窗户不太一样。检查libs/modules在哪里并删除它们。
解释你在做什么... – Internial
尝试从
Ç复制离子文件夹:\ Users \用户名\应用程序数据\漫游\ NPM \ node_modules
错误位置。
甚至在从package.json安装包后,有些时候离子文件夹不会被创建并导致Module.js 471错误。
这解决了我的问题。
如果重新安装节点不能解决缺少的模块错误,请尝试在项目目录下的cmd下运行“** npm install **”。它应该使用_package.json_中指定的所有必需的依赖项来更新_node_modules_目录。 –