Skip to content
npm Docs
npmjs.comStatusSupport
About npm
Getting started
Packages and modules
Integrations
Organizations
Policies
npm CLI
CLI Commands
npmnpm accessnpm addusernpm auditnpm binnpm bugsnpm buildnpm bundlenpm cachenpm cinpm completionnpm confignpm dedupenpm deprecatenpm dist-tagnpm docsnpm doctornpm editnpm explorenpm fundnpm helpnpm help-searchnpm hooknpm initnpm installnpm install-ci-testnpm install-testnpm linknpm logoutnpm lsnpm orgnpm outdatednpm ownernpm packnpm pingnpm prefixnpm profilenpm prunenpm publishnpm rebuildnpm reponpm restartnpm rootnpm run-scriptnpm searchnpm shrinkwrapnpm starnpm starsnpm startnpm stopnpm teamnpm testnpm tokennpm uninstallnpm unpublishnpm updatenpm versionnpm viewnpm whoami
Configuring npm
Using npm

npm-build

Build a package
Version 6.x (Legacy release)
  • Version 6.x (Legacy release)
Table of contents
  • Synopsis
  • Description
  • See Also
Table of contents
  • Synopsis
  • Description
  • See Also

Synopsis

npm build [<package-folder>]
  • <package-folder>: A folder containing a package.json file in its root.

Description

This is the plumbing command called by npm link and npm install.

It should generally be called during installation, but if you need to run it directly, run:

npm run-script build

See Also

  • npm install
  • npm link
  • npm scripts
  • package.json
Edit this page on GitHub