로컬에 express 설치
express 는 Node.js 가 설치된 디렉토리의 실행파일에서 설치명령을 진행한다.
D:\nodejs>npm install express
npm WARN saveError ENOENT: no such file or directory, open 'D:\nodejs\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'D:\nodejs\package.json'
npm WARN nodejs No description
npm WARN nodejs No repository field.
npm WARN nodejs No README data
npm WARN nodejs No license field.
+ express@4.17.1
added 50 packages from 37 contributors and audited 12153 packages in 4.549s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
D:\nodejs>npm install -g express express-generator
C:\Users\wook\AppData\Roaming\npm\express -> C:\Users\wook\AppData\Roaming\npm\node_modules\express-generator\bin\express-cli.js
+ express@4.17.1
+ express-generator@4.16.1
added 60 packages from 42 contributors in 2.106s
D:\nodejs>
전 D:의 nodejs 폴더에 설치되어 있습니다.