mirror of
https://github.com/denisidoro/navi
synced 2024-12-02 00:09:19 +00:00
commit
964d389911
1 changed files with 32 additions and 0 deletions
|
@ -21,6 +21,38 @@ npm install <package_name> --save-dev
|
||||||
# install globally a specified package
|
# install globally a specified package
|
||||||
npm install <package_name> -g
|
npm install <package_name> -g
|
||||||
|
|
||||||
|
# run a script
|
||||||
|
npm run <script>
|
||||||
|
|
||||||
|
$ script: node -p "Object.keys(require('./package.json').scripts).join('\n')"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% yarn, node, js
|
||||||
|
|
||||||
|
# initial new package
|
||||||
|
yarn init
|
||||||
|
|
||||||
|
# install all dependencies packages
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# install all dev dependencies packages
|
||||||
|
yarn install --save-dev
|
||||||
|
|
||||||
|
# install a specified package
|
||||||
|
yarn add <package_name>
|
||||||
|
|
||||||
|
# install a specified dev package
|
||||||
|
yarn add <package_name> --dev
|
||||||
|
|
||||||
|
# install globally a specified package
|
||||||
|
yarn global add <package_name>
|
||||||
|
|
||||||
|
# run a script
|
||||||
|
yarn run <script>
|
||||||
|
|
||||||
|
$ script: node -p "Object.keys(require('./package.json').scripts).join('\n')"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% nvm, node, js
|
% nvm, node, js
|
||||||
|
|
Loading…
Reference in a new issue