composer icon indicating copy to clipboard operation
composer copied to clipboard

npm run serve // starts the dev server report error

Open mmm2006 opened this issue 3 years ago • 2 comments

mmm2006 avatar Mar 01 '21 06:03 mmm2006

I download code. After run npm ci, i npm run serve. But it report below error infomation:

ERROR in node_modules/@types/node/events.d.ts(21,46): error TS1005: '=' expected. node_modules/@types/node/events.d.ts(32,36): error TS1005: '=' expected. node_modules/@types/node/events.d.ts(55,50): error TS1005: '=' expected. node_modules/@types/node/repl.d.ts(361,36): error TS1005: '=' expected. node_modules/@types/node/repl.d.ts(367,36): error TS1005: '=' expected. node_modules/@types/node/util.d.ts(24,30): error TS1005: '=' expected. node_modules/@types/node/util.d.ts(119,30): error TS1005: '=' expected. node_modules/@types/node/worker_threads.d.ts(9,29): error TS1005: '=' expected.

webpack: Failed to compile.

I don't know how to resolv it. Anyone can help me. Thanks

My enviroment: windows 10. node version:v12.18.2 typescript version: Version 2.6.2

thansk.

mmm2006 avatar Mar 01 '21 06:03 mmm2006

IF i run: npm run compile:electron IT will output:

rimraf electron/dist electron/ng-dist && ./node_modules/.bin/tsc -p electron && node build-scripts/splash-copy.js

'.' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] compile:electron: rimraf electron/dist electron/ng-dist && ./node_modules/.bin/tsc -p electron && node build-scripts/splash-copy.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] compile:electron 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:\Users\ThinkPad\AppData\Roaming\npm-cache_logs\2021-03-01T06_29_57_371Z-debug.log

Thanks

mmm2006 avatar Mar 01 '21 06:03 mmm2006