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 are affected by npm-config (7.
Default Value
Npm sets some default values based on the package content.
Copy codeThe C
. If we want to use someone else to write a package, each time according to the name of the official website search, download code, decompression, re-use, very cumbersome. So a centralized management of the tool came into being: we all put their own modules into the development of the NPM online, if you want to use, directly through the NPM installation can be directly used, no tube code exists where, shoul
This article is from my translation of the Infoq Chinese station, the original address is: Http://www.infoq.com/cn/news/2016/02/gulp-grunt-npm-scripts-part1Cory House is the author of "Building Applications with React and Flux" and "clean code:writing Code for humans", and is also a lecturer on Pluralsight's many courses. He is a vinsolutions software architect who has trained a large number of software developers around the world, primarily in softwa
Https://www.cnblogs.com/goldlong/p/8027997.htmlFirst clarify the relationship between Nodejs and NPM:node. JS is a running environment for JavaScript and is an encapsulation of the Google V8 engine. is a server-side JavaScript interpreter.Include the relationship, Nodejs contains NPM, for example, you install the Nodejs, you open the cmd input npm-v will find out the line
NPM is a package management tool that is installed with Nodejs to address many of the issues in Nodejs code deployment, with the following common usage scenarios:
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
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 to developers and communities of node. js. This article includes five points: Package.json, NPM configuration,
Recently while there is time to translate NPM guide, using Markdown typesetting, the first translation of many are in accordance with their own understanding of the meaning, there may be a lot of words are not exact place, but still hope to see the people help it.See the process for reference: NPM official documentation.What's (What's NPM?)
node. js NPMCommon Commands1.NPM Install module ((1) npm install (with no args, in package dir)1) No parameters, package directory2) Local Installation: By default, all modules declared in Package.json are installed into the Node_modules directory under the current path3) Global Installation:-g,--global parameter, NPM installs the current package to the global (S
As one of the most popular tools for private library management, Nexus is used in the management of packages and in the private library management scene of Docker mirroring management, but it can also be used in the management of NPM Private library. Why Nexus 3
Here to organize why the use of Nexus 3 for some reasons, in doing selection can make a simple reference.
Project
detailed
Why use Nexus 3
http://blog.csd
As the front-end team grows, the sharing of code between projects becomes particularly important. Commonly used frameworks/libraries do not need to put a share in each project, and the public modules that are produced within the team also need to have a reasonable sharing mechanism. Managing front-end code with NPM is now an industry trend. The landlord tries to use the private npm+ resource management syst
What is NPM?The full name of NPM is node Package Manager, which is a bundle management and distribution tool installed with Nodejs, which makes it easy for JavaScript developers to download, install, upload, and manage installed packages.NPM Install moduleBasic syntaxNPM install (with no args, in package dir) npm install [Install package, the latest version is in
Install node. js npm and node. jsnpmI didn't plan to introduce the npm installation of node. js, but I found that the management of some node. js packages is implemented through npm. I 'd like to briefly introduce npm.1. What is npm?Npm
Npm is a module dependency management tool for Node. js. As a tool used by developers, it mainly solves problems encountered during Node. js development. Like RubyGems's importance to Ruby developers and Maven for Java developers, npm's importance to Node. js developers and communities is self-evident. NPM is a Node package management and distribution tool and has become an unofficial standard for releasing
Configuration
NPM set
npm set Init-author-name ' Your name '
npm set init-author-email ' Your email '
npm set Init-author-url ' H Ttp://yourdomain.com '
npm set init-license ' MIT '
The above command is equivalent to setting the default value for
Targetnpm.xxx.com Installing and pushing Nodejs packagesNpmui.xxx.com manages NODEJS packages that have been pushedInstalling COUCHDBhttps://launchpad.net/~couchdb/+archive/ubuntu/stableThere are 14.10 14.04 and 12.04 PPA addresses installed that are not discussed hereInstalling COUCHDB 1.6.11. Initializeaccess to "http://localhost:5984/_utils/"new name is Registry libraryAsynchronous synchronous official Nodejs module (can not be done)2. Modify the configuration/usr/local/etc/couchdb/local.ini[
The original address HTTPS://GITHUB.COM/JINDADA/BLOG/ISSUES/1 why need to build private NPM Private package only want to use inside, still don't want to use git+ssh way, feel not elegant, And also want to be able to configure the appropriate permissions the package on NPM is very slow to download, want to cache the downloaded package on the server, the next download first check the update, if not update the
Write Java code, encounter problems first to find the relevant Third-party APIs, has become a habit, Java Third-party API is really too much. But also do not envy Java,node.js also many, see the official website introduction:
The bottom of the official document is Appendix 1:recommended Third-party Modules, here is an introduction to the third party module, the first: There are, many third parties Modules for Node.At the time of writing, August, the master repository of modules is the wiki page.
Most of the time, we only use NPM install,init,publish and other functions, but it is very good design, there are many we do not understand Look at it together. Global commandUsing Nodejs to write CLI tools is very cool, I've done a lot of this.
KP = kill by port
JE = JSON editor
MH = start MONGO here
The core is the configuration in the Package.json. "preferGlobal": "true","bin": { "mh": "index.js"}, Can The principle is sim
Common Nodejs in NPM commands:NPM is primarily a tool for node package management and publishing.Common commands for NPM:1:NPM Install 2:NPM Install -G to install the package into the global environment, my PC's Global environment is: C:\USERS\QINBB\APPDATA\ROAMING\NPM,Howev
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.