简体   繁体   English

我无法卸载nodejs。 在获得错误模块之后,找不到“ node-uuid”

[英]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.

相关问题 我应该使用node-uuid还是uuid? - Should I be using node-uuid or uuid? 我无法通过nodejs在mongodb中插入数据。 请在下面的错误日志中查找 - I am not able insert data in mongodb by nodejs. Please find below the logs of the error app.post() 方法在 nodejs 中不起作用。 我无法识别错误 - app.post() method is not working in nodejs. I am unable to identify the error 节点。 安装 npm 后找不到 gulp - Nodejs. gulp not found after npm install “重新安装 nodejs 后出现错误” - “I got an error after reinstalling nodejs” nodejs中的ejs支持。 如何开始学习ejs? - ejs support in nodejs. how I can got started to learning ejs? 我正在尝试将 Java AES 加密转换为 NodeJ。 这是我迄今为止尝试过的 - I am trying to convert Java AES encryption to NodeJs. This is what I have tried so far 使用 nodejs 将表单数据插入 mysql。 我哪里错了? - Inserting form data into mysql using nodejs. Where am I going wrong? 大家好:我在 nodejs 中启动 Sails 应用程序时遇到问题。 任何人都可以提出他们的见解吗? - Hello Folks: I am having problem in starting sails app in nodejs. can anyone put forth their insights on that? 沿时间间隔在数组中分配一个值。 我正在使用nodejs。 - Distribute a value value along time interval in array. I am using nodejs.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM