Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run serve // starts the dev server report error #487

Open
mmm2006 opened this issue Mar 1, 2021 · 2 comments
Open

npm run serve // starts the dev server report error #487

mmm2006 opened this issue Mar 1, 2021 · 2 comments

Comments

@mmm2006
Copy link

mmm2006 commented Mar 1, 2021

No description provided.

@mmm2006
Copy link
Author

mmm2006 commented Mar 1, 2021

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
Copy link
Author

mmm2006 commented Mar 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant