作者:陆星星陆星星风_586 | 来源:互联网 | 2023-09-09 12:30
D:workspaceAgrioComWebUI>npm run dev
WebUI@1.0.0 dev D:workspaceAgrioComWebUI
webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js
fs.js:157
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
1 2 3 4
| at maybeCallback (fs.js:157:9)
at Object.fs.write (fs.js:674:14)
at D:\workspace\AgrioCom\WebUI\webpack.dev.config.js:10:8
at FSReqWrap.oncomplete (fs.js:169:20) |
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! WebUI@1.0.0 dev:
1
| webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js |
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the WebUI@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:Usersji2AppDataRoamingnpm-cache_logs2018-07-19T01_05_40_820Z-debug.log
D:workspaceAgrioComWebUI>
0 info it worked if it ends with ok
1 verbose cli [ 'D:\Program Files\nodejs\node.exe',
1 verbose cli 'D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using npm@6.1.0
3 info using node@v10.3.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle WebUI@1.0.0~predev: WebUI@1.0.0
6 info lifecycle WebUI@1.0.0~dev: WebUI@1.0.0
7 verbose lifecycle WebUI@1.0.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle WebUI@1.0.0~dev: PATH: D:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;D:workspaceAgrioComWebUInode_modules.bin;C:Program Files (x86)Common FilesOracleJavajavapath;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsiCLS;C:Program FilesIntelIntel(R) Management Engine ComponentsiCLS;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelWiFibin;C:Program FilesCommon FilesIntelWirelessCommon;d:Program FilesGitcmd;C:Program Filesdotnet;D:Program Filesnodejs;D:apache-maven-3.5.3bin;D:Program FilesTortoiseGitbin;C:Usersjicx2AppDataLocalMicrosoftWindowsApps;C:Usersjicx2AppDataRoamingnpm;d:Program FilesMicrosoft VS Codebin
9 verbose lifecycle WebUI@1.0.0~dev: CWD: D:workspaceAgrioComWebUI
10 silly lifecycle WebUI@1.0.0~dev: Args: [ '/d /s /c',
10 silly lifecycle 'webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js' ]
11 silly lifecycle WebUI@1.0.0~dev: Returned: code: 1 signal: null
12 info lifecycle WebUI@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: WebUI@1.0.0 dev:
1
| webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js |
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (D:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:305:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess. (D:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:961:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
14 verbose pkgid WebUI@1.0.0
15 verbose cwd D:workspaceAgrioComWebUI
16 verbose Windows_NT 10.0.16299
17 verbose argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev"
18 verbose node v10.3.0
19 verbose npm v6.1.0
20 error code ELIFECYCLE
21 error errno 1
22 error WebUI@1.0.0 dev:
1
| webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js |
22 error Exit status 1
23 error Failed at the WebUI@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]