HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

npm install-test — Equivalent to running `npm install` followed by `npm test`. Note: `it` can be used as shorthand for

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandnpmfollowedinstallclirunningnpm install-testequivalent

Problem

How to use the npm install-test command: Equivalent to running npm install followed by npm test. Note: it can be used as shorthand for install-test. More information: <https://docs.npmjs.com/cli/npm-install-test/>.

Solution

npm install-test — Equivalent to running npm install followed by npm test. Note: it can be used as shorthand for install-test. More information: <https://docs.npmjs.com/cli/npm-install-test/>.

Install all dependencies and then run tests:
npm {{[it|install-test]}}


Install a specific package and then run tests:
npm {{[it|install-test]}} {{package_name}}


Install a package and save it as a dependency before running tests:
npm {{[it|install-test]}} {{package_name}} {{[-S|--save]}}


Install dependencies globally and then run tests:
npm {{[it|install-test]}} {{[-g|--global]}}

Code Snippets

Install all dependencies and then run tests

npm {{[it|install-test]}}

Install a specific package and then run tests

npm {{[it|install-test]}} {{package_name}}

Install a package and save it as a dependency before running tests

npm {{[it|install-test]}} {{package_name}} {{[-S|--save]}}

Install dependencies globally and then run tests

npm {{[it|install-test]}} {{[-g|--global]}}

Context

tldr-pages: common/npm install-test

Revisions (0)

No revisions yet.