Node package.json

From Logic Wiki
Jump to: navigation, search


[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