Difference between revisions of "Npm install"
Jump to navigation
Jump to search
↑ https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable
↑ https://docs.npmjs.com/cli/v8/commands/npm-ci
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | * https://docs.npmjs.com/cli/ | + | * https://docs.npmjs.com/cli/v10/commands/npm-install |
* <code>[[npm install --help]]</code> | * <code>[[npm install --help]]</code> | ||
* <code>[[npm install]]</code> | * <code>[[npm install]]</code> | ||
+ | * <code>[[npm ci]]</code> (clean install) | ||
+ | * <code>[[npm install --registry]]</code> | ||
+ | * <code>[[--loglevel]] verbose</code> | ||
+ | * <code>[[npm install]] [[ionic]] [[--loglevel verbose]]</code> | ||
* <code>[[npm i]]</code> | * <code>[[npm i]]</code> | ||
Line 13: | Line 17: | ||
* <code>[[npm]] install [[express]]</code> or <code>[[npm]] install [[express]] [[--save]]</code> | * <code>[[npm]] install [[express]]</code> or <code>[[npm]] install [[express]] [[--save]]</code> | ||
* <code>npm install [[electron]]</code> | * <code>npm install [[electron]]</code> | ||
+ | * <code>[[npm install config]]</code> | ||
* <code>[[npm install axios]]</code> | * <code>[[npm install axios]]</code> | ||
* <code>npm install [[express-oauth-server]]</code> | * <code>npm install [[express-oauth-server]]</code> | ||
Line 21: | Line 26: | ||
* <code>[[npm install --save jaeger-client]]</code> | * <code>[[npm install --save jaeger-client]]</code> | ||
* <code>[[npm install --save sequelize]]</code> | * <code>[[npm install --save sequelize]]</code> | ||
+ | * [[npm install --save-dev @wagmi/cli]] | ||
* <code>[[npm]] install [[detox]]</code> | * <code>[[npm]] install [[detox]]</code> | ||
* <code>[[npm install --only=production]]</code> | * <code>[[npm install --only=production]]</code> | ||
Line 27: | Line 33: | ||
* <code>[[npm install env-type]]</code> | * <code>[[npm install env-type]]</code> | ||
* <code>[[npm install react-app-rewired --save-dev]]</code> | * <code>[[npm install react-app-rewired --save-dev]]</code> | ||
+ | * [[aws-sdk]] | ||
* [[Npm scoped packages]] (<code>@</code>) | * [[Npm scoped packages]] (<code>@</code>) | ||
Line 39: | Line 46: | ||
** <code>npm install @google-cloud/[[trace-agent]]</code> | ** <code>npm install @google-cloud/[[trace-agent]]</code> | ||
** <code>npm i -g [[npm@7]]</code> | ** <code>npm i -g [[npm@7]]</code> | ||
+ | ** <code>npm i @[[sharemint]]/sdk</code> | ||
+ | |||
+ | * [[npm install hardhat]] | ||
[-g|--global] | [-g|--global] | ||
− | == Related | + | == Errors == |
+ | * <code>[[npm ERR! code E401 Incorrect or missing password]]</code> | ||
+ | |||
+ | <pre> | ||
+ | npm install -g [email protected] | ||
+ | npm ERR! code EBADENGINE | ||
+ | npm ERR! engine Unsupported engine | ||
+ | npm ERR! engine Not compatible with your version of node/npm: [email protected] | ||
+ | npm ERR! notsup Not compatible with your version of node/npm: [email protected] | ||
+ | npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} | ||
+ | npm ERR! notsup Actual: {"npm":"9.7.2","node":"v20.4.0"} | ||
+ | |||
+ | npm ERR! A complete log of this run can be found in: /Users/user/.npm/_logs/2024-03-28T09_33_24_506Z-debug-0.log | ||
+ | </pre> | ||
+ | |||
+ | == Related == | ||
* Clean install: <code>[[npm ci]]</code><ref>https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable</ref><ref>https://docs.npmjs.com/cli/v8/commands/npm-ci</ref> | * Clean install: <code>[[npm ci]]</code><ref>https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable</ref><ref>https://docs.npmjs.com/cli/v8/commands/npm-ci</ref> | ||
* <code>[[npm run build]]</code> | * <code>[[npm run build]]</code> | ||
Line 50: | Line 75: | ||
* <code>[[brew install npm]]</code> | * <code>[[brew install npm]]</code> | ||
* <code>[[vsts-npm-auth -config .npmrc]]</code> | * <code>[[vsts-npm-auth -config .npmrc]]</code> | ||
− | * <code>[[npm | + | * <code>[[package.json]]</code> |
+ | * <code>[[npm test]]</code> | ||
== See also == | == See also == |
Latest revision as of 10:27, 8 November 2024
npm install --help
npm install
npm ci
(clean install)npm install --registry
--loglevel verbose
npm install ionic --loglevel verbose
npm i
Install[edit]
npm install --registry https://registry.npmjs.org
Package examples[edit]
npm install -g npm
npm install express
ornpm install express --save
npm install electron
npm install config
npm install axios
npm install express-oauth-server
npm install -g wip
npm install -g typescript
npm install --global yarn
npm install --save set-value
npm install --save jaeger-client
npm install --save sequelize
- npm install --save-dev @wagmi/cli
npm install detox
npm install --only=production
npm install --no-audit
npm install node-addon-api
npm install env-type
npm install react-app-rewired --save-dev
- aws-sdk
- Npm scoped packages (
@
)npm install @semantic-release/gitlab -D
npm install -g @loopback/cli
npm install @sentry/cli
npm install -g @sentry/cli@2
npm install -g @sentry/cli@2
npm install -g @aws-amplify/cli
npm install --global cdktf-cli@latest
sudo npm install -g @sentry/cli --unsafe-perm
npm install @google-cloud/trace-agent
npm i -g npm@7
npm i @sharemint/sdk
[-g|--global]
Errors[edit]
npm install -g [email protected] npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: [email protected] npm ERR! notsup Not compatible with your version of node/npm: [email protected] npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} npm ERR! notsup Actual: {"npm":"9.7.2","node":"v20.4.0"} npm ERR! A complete log of this run can be found in: /Users/user/.npm/_logs/2024-03-28T09_33_24_506Z-debug-0.log
Related[edit]
- Clean install:
npm ci
[1][2] npm run build
yarn install
npm list
brew install npm
vsts-npm-auth -config .npmrc
package.json
npm test
See also[edit]
npm install
:npm install -g npm, brew install npm, npm ci
npm
,npx
,npm [ init
|audit
|install
|link | config | token
|start | publish | run start
|update | rebuild
|ci
|run build
].env/
,list
|ls | --version
,package.json
,$HOME/.npmrc
,npm help
, NPM Registry, npm ERR!
Advertising: