< YALU STUDIO >

Node.js Notes

Word count: 58 / Reading time: 1 min
2019/12/25 Share
1
2
3
4
5
6
7
// Create a package.json for a new project
mkdir example-project
cd example-project
npm init -y

// Install and update the package.json file
npm install --save express

Looking for modules

Order core modules -> node_modules in current directory -> node_modules in parent directory (keep trying) -> directory specified by the NODE_PATH environment variable

img

img

CATALOG
  1. 1. Looking for modules