npm
You probably want to first do
Then you can do something like:
npm run <script_name>
For example, for this package.json,
You run
npm run build
From CS349
Install a package from the npm library/registry
npm install <package> or npm i <package>
- install options —save-dev # package is for development only -g # install package globally (i.e. in your system)
List installed packages
npm list or npm list –g # to list global packages
Initialize Node project
npm init or npm create # alias for init
Run script
npm run <script-name>
Execute package
npm exec <package>
Update a package
npm update <package> or npm up <package>