How to Use npm to package and release the nodejs package and npm to package and release nodejs
Author: zhanhailiang Date:
No matter how internal projects are developed based on any language, we often encapsulate some extremely universal functional
Nodejs npm package. json Chinese document, nodejspackage. json
Introduction
This document provides all necessary configurations in package. json. It must be a real json object instead of a js object.
Many of the actions described in this document
First step: Download Nodejs and installOfficial: https://nodejs.org/en/, I chose the long-term support version v4.47, installation as long as the next step is OKAfter the installation is complete, you can use CMD (win+r and then enter CMD entry) to
What's NPM?
NPM's full name is Node Package Manager, the package management and distribution tool that is installed along with Nodejs, which makes it easy for JavaScript developers to download, install, upload, and manage installed packages.
NPM
NPM is a module-dependent management tool for node. js. As a tool used by developers, the main solution is to solve problems when developing node. js. As RubyGems the importance of Ruby developers and Maven for Java developers, NPM is self-evident
Nodejs1. Install Nodejs Download the latest version of node from the Nodejs website and set the environment variable so that you can operate the NPM environment variable directly from the command line under cmd: path d:/ Nodejs View native node and
1, Windows Nodejs installation is more convenient (after v0.6.0 version, support Windows native), only need to login official website (http://nodejs.org/), you can see the homepage of the "Install" button, A direct click will automatically download
1. Enter NPM config ls-l to view the current directory settings
Copy Code code as follows:
; CLI configs
Long = True
; Builtin config C:\Program Files (x86) \NODEJS\NODE_MODULES\NPM\NPMRCprefix =
NodeJS and NPM installation and configuration steps (for windows) and environment variable details, nodejsnpm
1, NodeJS installation under windows is more convenient (v0.6.0 version, support windows native), just need to log on to the official
1, Nodejs installation under Windows is more convenient (after the v0.6.0 version, supportWindows native), just log in to the website (http://nodejs.org/), you can see the "INSTALLbutton, the direct click will automatically download the installation.
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.