To publish Use $npm publish To publish with a specific tag Use $npm publish –tag=mytag ( E.g development ) To … More
Category: NodeJS
[NodeJS] – How to release a new npm lib/project version?
Create a tag for your release $git tag -a <TagName> -m “<message>” (E.g $git tag -a v1.2.0 -m “version v1.2.0”) … More
[NodeJS] – How to update/install an specific dependence?
Use the following command. npm install –save –save-exact @ E.g ( npm install –save –save-exact browserify@12.0.0 ) Notes: If the … More
[NodeJS] – How to manage Node versions installed locally? How to be able to switch the node version used?
To do it use nvm and install locally many NodeJS versions via the command nvm install <NodeJS> then choose the NodeJS version … More
[NodeJS] – Cordova – How to debug iOS emulations?
In order to debug ios emulated application into the local environment which is running via the command `$cordova emulate ios` will … More
[NodeJS] – How to get the version used/installed of some dependency?
Use the command: npm ls <dependency> Following an example. For further information check : https://docs.npmjs.com/cli/ls
[NodeJS] – How to update all dependencies into `package.json` file to the latest version?
npm i -g npm-check-updates npm-check-updates -u npm install
[NodeJS] – How to install dependencies? How works the`npm install`?
Npm is a smart package manager and it will install the latest and compatible with the project tag version as default[1][2]. … More