0% found this document useful (0 votes)
23 views1 page

02-Advanced NPM: Package Manager For JS Projects

The document discusses various topics related to using the Node Package Manager (NPM) including: installing packages from different sources like git repos, gists, or folders; searching for packages; upgrading packages; publishing your own packages; and configuring options like setting default author name or removing packages. It also lists common NPM commands for tasks like installing, updating, uninstalling, and listing packages.

Uploaded by

Vu Doan'
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

02-Advanced NPM: Package Manager For JS Projects

The document discusses various topics related to using the Node Package Manager (NPM) including: installing packages from different sources like git repos, gists, or folders; searching for packages; upgrading packages; publishing your own packages; and configuring options like setting default author name or removing packages. It also lists common NPM commands for tasks like installing, updating, uninstalling, and listing packages.

Uploaded by

Vu Doan'
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

installing from git repo

installing from gist

installing from a folder

npm registry

searching for packages


npm search <<package>>

pruning

npm repo <<package>>


02- Advanced NPM
package manager for JS projects
upgrading npm
Node Package Manager

package is a collection of modules scripts property


module is a single js file
typical npm usage
clone project, npm install, npm start, npm test
npm help setup npm user account
npm -h, npm <<package name>> -h
npm adduser
npm shortcuts
https://docs.npmjs.com/misc/config
create a git repo

user specific 01- Basics 03- Publish your own package


NPM create pacakge.json with right info
third party package.json file for types of projects
npm publish
npm init publish

npm set publish an update

setting defaults
npm set init-author-name 'Gaumsy'
release bet version

npm config delete init-author-name

installing packages

npm list

depth argument listing installed packages

installing global packages

npm uninstall <<package name>> --save


removing a package
npm r <<package>> -g

"@1.x.x"
installing specific version
--save-exact

^, ~

npm update
updating packages

You might also like