Node.js environment to build for mac

1. Open the official website to download the corresponding system installation package https://nodejs.org/en/download/   mac download pkg

2. Double-click the installation, execute the next step, and complete

3. Run node -v to view the node version

4. Run npm -v to view the npm version


Description: (Excerpt from: http://www.runoob.com/nodejs/nodejs-npm.html )

NPM is a package management tool installed with NodeJS. It can solve many problems in NodeJS code deployment. Common usage scenarios are as follows:

  • Allows users to download third-party packages written by others from the NPM server for local use.
  • Allows users to download and install command-line programs written by others from the NPM server for local use.
  • Allows users to upload their own packages or command-line programs to the NPM server for others to use.

During the development process, use npm install to install dependent packages, and use the following commands to solve the problem of slow speed

npm install --registry=https://registry.npm.taobao.org




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326408855&siteId=291194637