Linux에서 npm run 할때 생기는 오류 정리
Docker내부 Centos에서 npm run dev할 때 생기는 오류를 기준으로 작성함.
1. Cannot find module 'glob'
-> npm install -g angcli
2. npm 및 nodejs 설치 안되는 오류
-> yum install opel-release
-> yum install npm node
3. Cannot find module 'mustache'
-> npm install mustache
4. sh: webpack: command not found
-> npm install webpack webpack-dev-server --save-dev
5. The CLI moved into a separate package: webpack-cli
-> 아래 명시된 npm 또는 yarn 명령어 실행
6.
-> npm install --save-dev babel-preset-airbnb
7. Can't resolve 'babel-polyfill'
-> npm install --save-dev babel-polyfill
8. Can't resolve 'babel-loader'
-> npm install babel-loader
9. yum install epel-release 설치 오류
-> yum repolist
-> rpm -qa epel-release
-> yum list epel-release
-> yum install epel-release