본문 바로가기

js/node.js

[node.js] cannot find module 'express'



git clone 후 npm init, npm install 후에 node.js 앱 실행 시 모듈을 못 찾을 때 프로젝트 폴더에서 실행한다. express 가 이미 install 되어 있으면 npm link 만 실행해도 됩니다.


ubuntu 16.X sudo npm install -g express sudo npm link express



'js > node.js' 카테고리의 다른 글

[node.js] grunt build after ESLint : ERROR consistent-this  (0) 2017.10.19