Node package.json

From Logic Wiki
Revision as of 11:54, 15 September 2018 by AliIybar (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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