npm-cli----Cannot find module 'D:\node\nodejs\node_module\bin\npm-cli.js'
2017-09-06 22:09
1711 查看
我输入 npm init 报这个错
输入 npm -v 想查看npm的版本也是这个错
自己试着全局安装npm-cli 还是这个错
反正只要和npm有关的命令通通是这个错
之后就开始我的百度之旅,发现根本就没一个帖子有用,该错还是错。
我来说下我尝试了多少种方法:
1.将D:\node\nodejs\node_module\bin\路径增加到path
2.将npm设置全局变量,增加cache地址
3. 全局下载grunt-cli.js
4.更新npm update -g
等等,全部还是报这个错,这个时候已经黔驴技穷
最后我觉得是因为我的node装的时候没装好npm
所以删除了以前的安装的时候所在的文件夹,最后重新下载了一遍node,
最后就大功告成了!!!!!
果然重装和重启是万能的
输入 npm -v 想查看npm的版本也是这个错
自己试着全局安装npm-cli 还是这个错
反正只要和npm有关的命令通通是这个错
之后就开始我的百度之旅,发现根本就没一个帖子有用,该错还是错。
我来说下我尝试了多少种方法:
1.将D:\node\nodejs\node_module\bin\路径增加到path
2.将npm设置全局变量,增加cache地址
3. 全局下载grunt-cli.js
4.更新npm update -g
等等,全部还是报这个错,这个时候已经黔驴技穷
最后我觉得是因为我的node装的时候没装好npm
所以删除了以前的安装的时候所在的文件夹,最后重新下载了一遍node,
最后就大功告成了!!!!!
果然重装和重启是万能的
相关文章推荐
- Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' 解决方案
- 关于cannot find module 'e:\应用程序\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
- Windows node.js npm install express -g Cannot find module 'express'
- Windows node.js npm install express -g Cannot find module 'express'
- Windows node.js npm install express -g Cannot find module 'express'
- Windows node.js npm install express -g Cannot find module 'express'
- node.js项目的Cannot find module ‘xxx’问题
- node开发:windows环境下npm Cannot find module 'semver'
- appnode node报错 Node.js Cannot find module 'xxx'
- Node.js文件上传的时候控制台报Error: Cannot find module 'formidable'
- Node.js node主文件找不到时报出的Error:Cannot find module异常
- node.js cannot find module
- Cannot find module -----Node.js编程的第一个问题
- Nodejs Error: Cannot find module 'unicode/category/So'
- Node.js Cannot find module 'xxx' 有关问题解决
- node.js报错:Cannot find module 'ejs'的解决办法
- moudule.js:338 throw err; Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
- Node.js Cannot find Module xxx 的问题
- nvm 安装 npm 报错Cannot find module 'D:\node\nodejs\node_module\bin\npm-cli.js'
- nodejs express 启动报错:Error: Cannot find module 'xxx'