Problems encountered in the ant design environment building process--WINDOWS-DVA-CLI

Source: Internet
Author: User

The basics are omitted here, Nodejs and NPM are prerequisites.
1. The website is about scaffolding tool is antd-init, but also suggest real project with DVA-CLI, so Bo Master is directly installed is DVA-CLI, here is mainly a brief introduction under WINDOW7 in the process of installing DVA-CLI, some problems encountered, I hope to have some help to you classmates.
2. Since the network used by bloggers is a proxy server, first of all, set up a proxy server for NPM
$ NPM Config Set proxy http://server:port
$ npm config set Https-proxy http://server:port

3. After setting up the proxy server, you can install DVA-CLI
$ NPM install-g dva-cli

4. After the installation is complete, enter dva-v to view the version and find an error. Later found to be the problem of environmental variables, at this time have to start from the beginning Nodejs installation of the problem left behind. Because it has been installed before, so the next figure from the network, interested can also view the original post (with Link: http://www.myhack58.com/Article/sort099/sort0100/2015/66674.htm)

1) First step: Go to official website to download Nodejs installation package
2) Step two: Install
Because of the Windows Admin privilege mechanism, it is not recommended to install on the C drive here, I change here in order to non-system disk.

3) Step three: Detect installation success
Open a command prompt, Git bash or just installed node. js Command Prompt

Can be found in the program directory

Command line interface

4) Fourth step: Configure the storage path of the global module
NPM is the Nodejs module management, we can configure the NPM global Module storage path and the cache path, the blogger that would be so loaded

Test after successful installation

5) Fifth step: Set system environment variables
Turn on computer-Properties-Advanced system settings,

Open Environment Variables dialog box

Because the module's default address is changed, the user variable must be changed (the user variable path is modified to the global module storage path we set just now), or the use of the module will cause the input command to appear "XXX is not an internal or external command, It is also not a program or batch file that can be run "this error.

The global module storage path used by bloggers forget, just looked at this, add it to my user variable inside

At the same time add the Node_path variable in the system variable, when using the global installation, first in this directory to find the module.

6) Sixth step: Test the Installation Module DVA-CLI

In this way, the environment has been completed, and hope to help you.

Problems encountered in the ant design environment building process--WINDOWS-DVA-CLI

Related Article

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.