내 React Project에 Webpack 을 설치 하는 과정에서 다음 문제가 진행을 방해합니다.
Webpack을 구성하는 마지막 단계
npm run build && node ./dist/main.js
Windows Power Shell / Visual Studio Code의 오류
PS C:\Users\pythonbuddha\Desktop\to_experiment\to-do-list> npm run build && node ./dist/main.js
At line:1 char:15
+ npm run build && node ./dist/main.js
+ ~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
웹팩 구성을 약속 한 튜토리얼
https://developerhandbook.com/webpack/webpack-4-from-absolute-scratch/
https://developerhandbook.com/webpack/how-to-configure-scss-modules-for-webpack/
PowerShell을 사용하고 있기 때문입니다. CMD
또는Git Bash
또는 (PS에서 계속하려는 경우) :
(npm run build) -and (node ./dist/main.js)
3rd Alternative는 별도로 실행하면됩니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다