User Tools

Site Tools


programming:javascript:npm

This is an old revision of the document!


NPM

Create a project

npm init

Start project

# install modules from package.json
npm install
# starts the tests defined in 
npm test

Using NPM in browser

Setting the default registry

npm config set registry https://yoururl.com/artifactory/api/npm/npm-all
npm config set registry https://yoururl.com/artifactory/api/npm/npm-all
npm config get registry
npm config edit

The file, where teh config is stored is in your home dir and is called '.npmrc'

programming/javascript/npm.1648062192.txt.gz · Last modified: by skipidar