해결된 질문
작성
·
360
0
안녕하세요,웹팩을 설치완료후 npm run build를 실행하면 에러가 뜨는데요,이유를 찾지못하겠습니다.에레 메시지는 아래와 같습니다.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! install@1.0.0 build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the install@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
package.json중의 내용은 아래와 같습니다.
답변 4
1
0
0
> install@1.0.0 build D:\root\test\exercise\c_mina\Vue\html\install
> webpack
Hash: ef4d9e3e623a48805621
Version: webpack 4.41.0
Time: 463ms
Built at: 2019-10-07 1:13:02 PM
Asset Size Chunks Chunk Names
app.js 249 KiB app [emitted] app
Entrypoint app = app.js
[./main.js] 108 bytes {app} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {app} [built]
+ 4 hidden modules
ERROR in ./main.js
Module not found: Error: Can't resolve 'NumbaeBaseball' in 'D:\root\test\exercise\c_mina\Vue\html\install'
@ ./main.js 2:0-44 3:8-22
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! install@1.0.0 build: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the install@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
0