npm root -g
The result (on this computer) isC:\Users\Admin\AppData\Roaming\npm\node_modules
npm list
npm list --depth 0
Shows all packages with only their dependencies (one level deep)npm list --depth 1
scripts
key, inside package.json
file.
If the content is the following"scripts": {
"start": "node app.js",
"server": "live-server"
}
Then we can run npm run start
and npm will run node app.js
We can also run npm run server
and it will run live-server
npm install
command (in console)npm install -h
Alternative to the above commandnpm install --help
update
ISC
)npm config delete init-license
Deletes manually set default author name (default author will become empty string)npm config delete init-author-name