Home > Web Front-end > JS Tutorial > body text

How to download and install nodejs

php中世界最好的语言
Release: 2017-12-04 13:11:07
Original
2765 people have browsed it

Many novices don’t know how toinstallnodejs. Today I will bring you the nodejs download and installation tutorial. Let’s take a look.

1. Install nodejs

Official website Download node.js Install

Create a new "NODE_PATH" under system variables and enter "D:\Program Files\nodejs\node_modules ”

Create a new directory node_global node_cache in the nodejs installation directory

(Change the user variable “PATH” to “D:\Program Files\nodejs\node_global\”)

npm config set prefix “D:\Program Files\nodejs\node_global”

npm config set cache “D:\Program Files\nodejs\node_cache”

2. Install cnpm

npm install -g cnpm –registry=https://registry.npm.taobao.org

3. Problems encountered

nodejs npm command does not respond Solution

Deletenpmrc file .npmrc under C:\Users{Account}\

npm ERR! Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm config set strict-ssl false


# I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Related reading:

Summary of the front-end js framework and explanation of its uses

Detailed introduction to the three major structures of the javascript development tutorial

The server actively sends data back to the client in H5 implementation steps

The above is the detailed content of How to download and install nodejs. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!