allow-scripts
Execute allowed `npm install` lifecycle scripts
File Explorer
- allow-scripts.js
- index.js
- allowed-false.json
- allowed-semver.json
- basic.dry-run.txt
- basic.full.txt
- basic.json
- cycle-a.json
- cycle-b.json
- cycle-c.json
- deep.json
- deep.txt
- index.js
- invalid-semver.json
- not-in-allowed.json
- nothing-allowed.json
- with-cycles.json
- with-cycles.txt
- with-install-script.json
- with-postinstall-script.json
- with-preinstall-script.json
- without-install-scripts.json
- without-scripts.json
- index.js
- .eslintrc
- .gitignore
- .releaserc.js
- .travis.yml
- package.json
- README.md
- renovate.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
npx
View Details ▼
npx
This command is an alias of `npm exec`.
tldr npm exec
View documentation for the original command:
yarn
View Details ▼
yarn
JavaScript and Node.js package manager alternative.
yarn global add {{module_name}}
Install a module globally:
yarn install
Install all dependencies referenced in the `package.json` file (the `install` is optional):
yarn add {{module_name}}@{{version}}
Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
