First step: Install node. js.
· 1. Create a new folder on the F drive Node,jiang
2, Baidu node official website, download node. js
3. Click on the downloaded node. js for installation. Installation address selected in F:\node\nodeResore
4. Check if Nodejs is installed: cmd Open the Command window, find the F:\node\nodeResore path, enter path, and you can see the F:\node\nodeResore path at this time.
Enter NODE-V to see the version number of the Nodejs you installed.
Step two: The storage path of the global module that needs to be configured for NPM and the path of the cache
1, CMD Open the Command window, find the F:\node\nodeResore path, enter
NPM config set prefix "F:\node\nodejs\node_global"
NPM config Set cache "F:\node\nodejs\node_cache"
It will build a Nodejs folder under the node file, and then create "Node_global" and "Node_cache" two folders.
2, My Computer--attribute--advanced--environment variable, add "Node_path", "F:\node\nodejs\node_global\node_modules" under System variable.
3, Installation CNPM
Enter NPM install-g cnpm–registry=https://registry.npm.taobao.org in cmd to point NPM to the domestic mirror source, to the completed VUEJS environment.
Build Vue.js Environment