-
카테고리
-
해결 여부
미해결
web pack 에러
20.02.29 23:06 작성 조회수 499
1
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.
Hash: d6c939b5a5a99e62ccf4
Version: webpack 4.41.6
Time: 28ms
Built at: 02/29/2020 10:56:21 PM
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' optio
n to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configur
ation/mode/
ERROR in Entry module not found: Error: Can't resolve './src' in '/Users/yun-ali/Downloads/LearnWebpack-ma
ster'
답변을 작성해보세요.
1
1
1
univue
질문자2020.03.02
{
"name": "getting-started",
"version": "1.0.0",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack"
},
"description": "",
"main": "webpack.config.js",
"keywords": [],
"author": "",
"license": "ISC"
}
1
univue
질문자2020.03.01
internal/modules/cjs/loader.js:250
throw e;
^
SyntaxError: Error parsing /usr/local/lib/node_modules/webpack/package.json: Unexpected string in JSON at
position 8557
at JSON.parse (<anonymous>)
at readPackage (internal/modules/cjs/loader.js:239:25)
at readPackageScope (internal/modules/cjs/loader.js:263:19)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:966:17)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11 {
path: '/usr/local/lib/node_modules/webpack/package.json'
}
npm ERR! code ELIFECYCLE
Git
GitHub
Create Repository
Initialize /Users/yun-ali/Downloads/LearnWebpack with a Git repository
Create repository
npm ERR! errno 1
npm ERR! getting-started@1.0.0 build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the getting-started@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yun-ali/.npm/_logs/2020-03-01T10_32_35_467Z-debug.log
1
univue
질문자2020.03.01
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yun-ali/.npm/_logs/2020-03-01T09_55_11_550Z-debug.log
1
0
0
0
장기효(캡틴판교)
지식공유자2020.03.02
안녕하세요 윤희님, package.json 내용이 아래와 같이 잘 작성되었는지 한번 확인해보세요..! :)
{
"name": "...",
"version": "...",
"scripts": {
"build": "webpack"
},
...
}
0
장기효(캡틴판교)
지식공유자2020.03.01
윤희님 아래 문서의 6번 참고하셔서 package.json 파일에 "scripts" 관련된 코드 넣어주시고 `npm run build` 한번 돌려보세요 :)
답변 10