Build Vue.js Environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.