简体   繁体   中英

Problem re-installing NodeJS and NPM on Windows10

I am a novice with node.js and npm. I wanted to use purgecss npm plugin so tried to update and upgrade my node Downloaded v11.1 and installed it but after that Its broken now and I can't figure out its log file either 在此处输入图片说明

Here is the npm-debug.log file with it. Please tell me in simple and plain words how to fix this node installation problem

在此处输入图片说明

If your having a problem try to update node.js (I did for 3 days). Try Give NVM (Node Version Manager) a try.

Do the following in this order:

  1. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

  2. command -v nvm

  3. nvm install node

  4. node -v

node -v will show you that your node.js is updated.

So the problem was that the Environment Paths somehow got messed up on the re-install of Node latest version. So these are the Environment Variables paths settings that worked for me Now my settings that worked for me looks like this

USER VARIABLES 在此处输入图片说明

SYSTEM VARIABLES 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM