Merge pull request #248 from toan2406/master

Update javascript cheats
This commit is contained in:
Denis Isidoro 2020-03-13 09:16:35 -03:00 committed by GitHub
commit 964d389911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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