치악산 복숭아

[error] webpack: command not found 본문

FE

[error] webpack: command not found

Juliie 2020. 10. 9. 23:33

webpack: command not found

 

webpack 패키지를 잘 설치했는데도 계속 오류가 떴다...😭

해결방법은

 

1. package.json 파일에 "scripts": { "start": "webpack" }를 추가하고  $npm start

2. ./node_modules/.bin/webpack 으로 커맨드 실행

3. $npx webpack

 

출처: stackoverflow.com/questions/35932000/zsh-command-not-found-webpack?noredirect=1&lq=1
Tag
, ,
0 Comments
댓글쓰기 폼