Posts

Showing posts from September, 2016

Node Commands

# How install specific node version on Ubuntu -  https://github.com/nodesource/distributions/blob/master/README.md  npm commands:  npm init - To initalize the package. This will create package.json on the fly  npm install - This will look for package.json and install all the listed packages npm insall -g <package name> - To install packages globally npm install --save <package name> - To install packages locally, as well as add entry to package.json file npm install --save-dev <package name> - To install packages locally, as well as add entry to dev section in the package.json npm list -g --depth=0 - To list all the globally installed packages. Without depth, will list down all the installed packages and sub packages npm view cordova versions - List down all the released versions  npm uninstall --save <package name> - To  remove packages from locally. --save will remove entry from package.json npm cache clean - Delete data out of the