Difference between revisions of "Npm install"

From wikieduonline
Jump to navigation Jump to search
 
(60 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{lowercase}}  
 
{{lowercase}}  
 +
* 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 ci]]</code> (clean install)
 +
* <code>[[npm install --registry]]</code>
 +
* <code>[[--loglevel]] verbose</code>
 +
* <code>[[npm install]] [[ionic]] [[--loglevel verbose]]</code>
 +
* <code>[[npm i]]</code>
 +
 +
=== Install ===
 +
<code>npm install --registry https://registry.npmjs.org</code>
 +
 +
== Package examples ==
 +
* <code>[[npm install -g npm]]</code>
 
* <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 @[[semantic-release]]/gitlab -D</code>
+
* <code>[[npm install config]]</code>
 +
* <code>[[npm install axios]]</code>
 
* <code>npm install [[express-oauth-server]]</code>
 
* <code>npm install [[express-oauth-server]]</code>
 
* <code>[[npm install -g]] [[wip]]</code>
 
* <code>[[npm install -g]] [[wip]]</code>
* <code>[[npm install -g]] @[[loopback]]/cli</code>
+
* <code>[[npm install -g]] typescript</code>
 +
* <code>[[npm install --global yarn]]</code>
 
* <code>[[npm install --save set-value]]</code>
 
* <code>[[npm install --save set-value]]</code>
 +
* <code>[[npm install --save jaeger-client]]</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 --no-audit]]</code>
 +
* <code>[[npm install node-addon-api]]</code>
 +
* <code>[[npm install env-type]]</code>
 +
* <code>[[npm install react-app-rewired --save-dev]]</code>
 +
* [[aws-sdk]]
 +
 +
* [[Npm scoped packages]] (<code>@</code>)
 +
** <code>npm install @[[semantic-release]]/gitlab -D</code>
 +
** <code>[[npm install -g]] @[[loopback]]/cli</code>
 +
** <code>[[npm install @sentry/cli]]</code>
 +
** <code>[[npm install -g @sentry/cli@2]]</code>
 +
** <code>[[npm install -g @sentry/cli@2]]</code>
 +
** <code>[[npm install -g @aws-amplify/cli]]</code>
 +
** <code>[[npm install --global cdktf-cli@latest]]</code>
 +
** <code>sudo npm install -g @sentry/cli [[--unsafe-perm]]</code>
 +
** <code>npm install @google-cloud/[[trace-agent]]</code>
 +
** <code>npm i -g [[npm@7]]</code>
 +
** <code>npm i @[[sharemint]]/sdk</code>
 +
 +
* [[npm install hardhat]]
  
  
 
  [-g|--global]
 
  [-g|--global]
  
== Related commands ==
+
== Errors ==
* <code>[[npm ci]]</code><ref>https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable</ref>
+
* <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>
 
* <code>[[npm run build]]</code>
 
* <code>[[npm run build]]</code>
 
* <code>[[yarn install]]</code>
 
* <code>[[yarn install]]</code>
 +
* <code>[[npm list]]</code>
 +
* <code>[[brew install npm]]</code>
 +
* <code>[[vsts-npm-auth -config .npmrc]]</code>
 +
* <code>[[package.json]]</code>
 +
* <code>[[npm test]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{npm install}}
 
* {{npm}}
 
* {{npm}}
  
[[Category:JavaScript]]
+
[[Category:npm]]

Latest revision as of 10:27, 8 November 2024

Install[edit]

npm install --registry https://registry.npmjs.org

Package examples[edit]


[-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]

See also[edit]

  • https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable
  • https://docs.npmjs.com/cli/v8/commands/npm-ci
  • Advertising: