1. Install the latest stable version of node (official website download)
Website: https://nodejs.org/zh-cn/
The command line detection version succeeds, the installation succeeds: Node-v, npm-v
2. Set the default installation path for NPM, and the cache path
In the node installation directory, create a new folder Node_global and Node_cache
Set up the NPM installation location (Nodejs installation location)
NPM config set prefix "D:\sys\node\node_global"
Cache location When setting up NPM Setup
NPM config set cache "D:\sys\node \node_cache"
and then you put The D:\sys\node\node_global Path is added to the environment variable path.
3. Restart Webstorm to use the NPM command
---------------------
Nero__a
Source: CSDN
Original: 62228646?utm_source=copy
Copyright NOTICE: This article is for bloggers original article, reprint please attach blog link!
node, NPM Environment setup