node, NPM Environment setup

Source: Internet
Author: User

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

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.