Difference between revisions of "Node package.json"

From Logic Wiki
Jump to: navigation, search
(Created page with "Category:Node.js Category:npm [npmjs.com npmjs.com] to answer questions one by one npm init to accept all npm init --yes when we install a package a dependencies...")
 
(No difference)

Latest revision as of 11:54, 15 September 2018


[npmjs.com npmjs.com]

to answer questions one by one

npm init

to accept all

npm init --yes

when we install a package a dependencies object is added in package.json

npm i underscore 

and to use it

var _ = require('underscore');

require check sequence

it checks modules in this order

  1. Core module
  2. File or folder
  3. node_modules