-
-
Save yogain123/c4516979c00dae9b01bbdfd1ecb3ba2c to your computer and use it in GitHub Desktop.
hola |
npx
node package executable
execute local installed things without writing down it in script
, if json-server is installed locally , then you can run
npx json-server -p 1234 -w db.json
extra
vendor.js
WebPack bundles all the file and babel convert ES6 from that bundles files to old version which all browser can understand
local dependencies ==> okay
global dependencies ==> okay
but if you want to run global dependencies installed locally, then you need to write script and run, otherwise it won't work
example::
npm install json-server -g // now running json-server from anywhere will work properly
BUT
npm install json-server --save // now running json-server will not work in project folder . thats why put it in script
"scripts":{
"executeMe":"json-server"
}
then ==> npm run executeMe
check module info
npm info <module-name>
npm info lodash
more npm command
pnpm -> check it for monorepo
npm link
npm pack
npm ls <package-name>
--> print to stdout all the versions of a package that is installed, including their dependencies in a tree-structure
NVM
Download NVM from github