반응형
! 기록을 위한 포스트입니다.
node_modules을 지우고 npm install 로 다시 패키지를 받고 프로젝트를 실행하니 다음과 같은 에러가 발생했다.
Error: Cannot find module 'webpack'
찾아보니 터미널에서 다음 명령어를 실행 후 오류를 해결 할 수가 있었다.
npm link webpack
https://stackoverflow.com/questions/29492240/error-cannot-find-module-webpack
Error: Cannot find module 'webpack'
I'm just getting started with webpack and am having difficulty getting the multiple-entry-points sample to build. The webpack.config.js file in the example includes the line var CommonsChunkPlug...
stackoverflow.com
https://docs.npmjs.com/cli/v6/commands/npm-link
npm-link | npm Docs
Symlink a package folder
docs.npmjs.com
스택오버플로우와 공식문서에 기재된 내용을 살펴 보았을 때 로컬로 설치된 webpack을 못찾아서 전역으로 연결해주는거 로 보인다.
반응형
'Dev > etc' 카테고리의 다른 글
[Ubuntu] Ubuntu tomcat 특정 버전 설치 (0) | 2023.10.10 |
---|---|
[Ubuntu] Ubuntu Nginx install(우분투 Nginx 설치) (0) | 2023.10.10 |
[CURL] curl 로 파일 다운로드 받기! (0) | 2023.06.12 |
[puppeteer] how to puppeteer click not working 해결 (0) | 2023.05.22 |
[GitHub] github upload project(깃허브 프로젝트 업로드하기) (0) | 2023.04.20 |