[英]I am not able to uninstall nodejs. After I got the error module not found “node-uuid”
I tried to install angular2 quickstart https://angular.io/docs/ts/latest/guide/setup.html#!#develop-locally Then I got the error node-uuid module not found. 我试图安装angular2快速入门https://angular.io/docs/ts/latest/guide/setup.html#!#develop-locally然后我发现了未找到错误的node-uuid模块。 I tried following these links https://github.com/npm/npm/issues/15310 but its not working :( .
我尝试按照以下链接https://github.com/npm/npm/issues/15310,但是它不起作用:(。
Error: Cannot find module 'node-uuid'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (\nodejs\node_modules\npm\node_modules\request\lib\auth.js:4:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
Please let me know how to get npm install work again. 请让我知道如何再次进行npm安装工作。
Most NPM issues can be fixed with this process : 大多数NPM问题可以通过以下过程解决:
In your project 在你的项目中
rm -rf /node_modules
npm cache clean
Find your global node_modules
查找您的全局
node_modules
You can run npm list -g to see where global libraries are installed.
您可以运行npm list -g来查看全局库的安装位置。
On Unix systems they are normally placed in /usr/local/lib/node or /usr/local/lib/node_modules when installed globally.
在Unix系统上,全局安装时,它们通常位于/ usr / local / lib / node或/ usr / local / lib / node_modules中。 If you set the NODE_PATH environment variable to this path, the modules can be found by node.
如果将NODE_PATH环境变量设置为此路径,则可以按节点找到模块。
Windows XP - %USERPROFILE%\\Application Data\\npm\\node_modules
Windows XP-%USERPROFILE%\\ Application Data \\ npm \\ node_modules
Windows 7 [ - 10] - %AppData%\\npm\\node_modules
Windows 7 [-10]-%AppData%\\ npm \\ node_modules
rm -rf /node_modules
Back to your project 回到您的专案
npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.