NPM: Difference between revisions
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 70: | Line 70: | ||
|- | |- | ||
| valign="top" colspan="2"| | | valign="top" colspan="2"| | ||
sudo npm install -g [email protected] | |||
npm install -g serve | npm install -g serve | ||
serve -s build | serve -s build | ||
Line 78: | Line 79: | ||
|- | |- | ||
| valign="top" colspan="2"| | | valign="top" colspan="2"| | ||
npm install react-simple-code-editor --force --legacy-peer-deps | |||
npm config set legacy-peer-deps true | npm config set legacy-peer-deps true | ||
npm install --legacy-peer-deps | npm install --legacy-peer-deps | ||
|} | |} | ||
Line 108: | Line 110: | ||
* [https://docs.npmjs.com/cli/v7/commands/npm-install Install a package] | * [https://docs.npmjs.com/cli/v7/commands/npm-install Install a package] | ||
* [[Express]] | * [[Express]] | ||
| valign="top" | | |||
|- | |- | ||
Line 116: | Line 119: | ||
* [https://stackoverflow.com/questions/37372816/ What does <code>@</code> symbol mean in <code>import</code>?] | * [https://stackoverflow.com/questions/37372816/ What does <code>@</code> symbol mean in <code>import</code>?] | ||
* [https://stackoverflow.com/questions/49151868/ Why some <code>npm</code> packages start with <code>@</code>?] | * [https://stackoverflow.com/questions/49151868/ Why some <code>npm</code> packages start with <code>@</code>?] | ||
* [https://stackoverflow.com/questions/48440673/ Switch Between Terminals in VSCode] | |||
* [[VSCode]] | * [[VSCode]] | ||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [[React Native]] | |||
* [[PrimeFaces]] | |||
* [[JavaScript]] | |||
* [[Angular:4]] | |||
* [[ReactJS]] | |||
* [[ExtJS]] | |||
* [[Yarn]] | * [[Yarn]] | ||
| valign="top" | | |||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [[CocoaPods]] | |||
* [[Maven]] | |||
* [[Conan]] | |||
* [[Bazel]] | |||
* [[Ant]] | |||
* [[Ivy]] | |||
| valign="top" | | |||
| valign="top" | | | valign="top" | | ||
|} | |} |
Latest revision as of 02:43, 11 October 2024
npm install <git-host>:<git-user>/<repo-name>
npm install <alias>@npm:<name>
npm install <git repo url>
npm install <tarball file>
npm install <tarball url>
npm install <folder>
|
npm install [<@scope>/]<name>@<version range>
npm install [<@scope>/]<name>@<version>
npm install [<@scope>/]<name>@<tag>
npm install [<@scope>/]<name>
npm install
|
| |
aliases: npm i, npm add common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run] |
Angular
npm install -g @angular/cli ng serve --open
ReactJS
npm install npm start
Knowledge
npm config set key=value [key=value...] npm config delete key [key ...] npm config get [key ...] npm config list npm config edit | |
| |
npm install npm@latest -g npm list -g --depth 0 node -v npm -v |
npm cache clean -f && npm install -g n && n stable npm install -g npm npm upgrade -g npm update -g |
| |
sudo npm install -g [email protected] npm install -g serve serve -s build | |
| |
npm install react-simple-code-editor --force --legacy-peer-deps npm config set legacy-peer-deps true npm install --legacy-peer-deps |
References
| ||
| ||
| ||