W3C
school
文档首页
HTML
CSS
Javascript
Python
jQuery
NodeJS
PHP
Java
MySQL
Express
More »
开关
Npm 官方文档
How npm works
01 - Packages
02 - npm v2
03 - npm v3
04 - npm v3 Duplication
05 - npm v3 Non-determinism
Troubleshooting
01 - Try the latest stable version of node
02 - Try the latest stable version of npm
03 - If your npm is broken
04 - Try clearing the npm cache
05 - Common Errors
Getting Started
01 - What is npm?
02 - Installing Node.js and updating npm
03 - Fixing npm permissions
04 - Installing npm packages locally
05 - Using a `package.json`
06 - Updating local packages
07 - Uninstalling local packages
08 - Installing npm packages globally
09 - Updating global packages
10 - Uninstalling global packages
11 - Creating Node.js modules
12 - Publishing npm packages
13 - Semantic versioning and npm
14 - Working with scoped packages
15 - Using tags
Private Modules
01 - Working with private modules
02 - Downloading modules to CI/deployment servers
03 - Docker and private modules
CLI Commands
access (CLI)
adduser (CLI)
bin (CLI)
bugs (CLI)
build (CLI)
bundle (CLI)
cache (CLI)
completion (CLI)
config (CLI)
dedupe (CLI)
deprecate (CLI)
dist-tag (CLI)
docs (CLI)
doctor (CLI)
edit (CLI)
explore (CLI)
help (CLI)
help-search (CLI)
init (CLI)
install (CLI)
install-test (CLI)
link (CLI)
logout (CLI)
ls (CLI)
npm (CLI)
outdated (CLI)
owner (CLI)
pack (CLI)
ping (CLI)
prefix (CLI)
prune (CLI)
publish (CLI)
rebuild (CLI)
repo (CLI)
restart (CLI)
root (CLI)
run-script (CLI)
search (CLI)
shrinkwrap (CLI)
star (CLI)
stars (CLI)
start (CLI)
stop (CLI)
team (CLI)
test (CLI)
uninstall (CLI)
unpublish (CLI)
update (CLI)
version (CLI)
view (CLI)
whoami (CLI)
Using npm
coding-style
developers
disputes
orgs
registry
removing-npm
scope
scripts
semver
Config
config
config: access
config: allow-same-version
config: also
config: always-auth
config: auth-type
config: bin-links
config: browser
config: ca
config: cache
config: cache-lock-retries
config: cache-lock-stale
config: cache-lock-wait
config: cache-max
config: cache-min
config: cafile
config: cert
config: color
config: depth
config: description
config: dev
config: dry-run
config: editor
config: engine-strict
config: fetch-retries
config: fetch-retry-factor
config: fetch-retry-maxtimeout
config: fetch-retry-mintimeout
config: force
config: git
config: git-tag-version
config: global
config: global-style
config: globalconfig
config: group
config: heading
config: https-proxy
config: if-present
config: ignore-prepublish
config: ignore-scripts
config: init-author-email
config: init-author-name
config: init-author-url
config: init-license
config: init-module
config: init-version
config: json
config: key
config: legacy-bundling
config: link
config: local-address
config: loglevel
config: logs-max
config: logstream
config: long
config: maxsockets
config: message
config: metrics-registry
config: node-version
config: offline
config: onload-script
config: only
config: optional
config: package-lock
config: parseable
config: prefer-offline
config: prefer-online
config: prefix
config: production
config: progress
config: proprietary-attribs
config: proxy
config: rebuild-bundle
config: registry
config: rollback
config: save
config: save-bundle
config: save-dev
config: save-exact
config: save-optional
config: save-prefix
config: save-prod
config: scope
config: scripts-prepend-node-path
config: searchexclude
config: searchlimit
config: searchopts
config: searchstaleness
config: send-metrics
config: shell
config: shrinkwrap
config: sign-git-tag
config: sso-poll-frequency
config: sso-type
config: strict-ssl
config: tag
config: tag-version-prefix
config: timing
config: tmp
config: umask
config: unicode
config: unsafe-perm
config: usage
config: user
config: user-agent
config: userconfig
config: version
config: versions
config: viewer
Configuring npm
folders
npmrc
package-lock.json
package-locks
shrinkwrap.json
package.json
package.json
package.json: bin
package.json: bugs
package.json: bundledDependencies
package.json: config
package.json: cpu
package.json: dependencies
package.json: description
package.json: devDependencies
package.json: directories
package.json: engines
package.json: engineStrict
package.json: files
package.json: homepage
package.json: keywords
package.json: license
package.json: main
package.json: man
package.json: name
package.json: optionalDependencies
package.json: os
package.json: peerDependencies
package.json: people fields: author, contributors
package.json: preferGlobal
package.json: private
package.json: publishConfig
package.json: repository
package.json: scripts
package.json: version
Index
index