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 dev issue #50

Closed
hhy885 opened this issue Dec 12, 2022 · 2 comments
Closed

npm run dev issue #50

hhy885 opened this issue Dec 12, 2022 · 2 comments

Comments

@hhy885
Copy link

hhy885 commented Dec 12, 2022

~/wechatbot/wechat-bot$ npm run dev

wechat-boot@1.0.0 dev /home/tz/wechatbot/wechat-bot
node ./index.js

/home/tz/wechatbot/wechat-bot/index.js:1
import "./src/wechaty/index.js";
^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Unexpected string
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wechat-boot@1.0.0 dev: node ./index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wechat-boot@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2022-12-12T22_46_07_481Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR! /home/tz/.npm/_logs/2022-12-12T22_46_07_481Z-debug.log

==>

Resolved by updating to the latest version nodejs!!

@hhy885
Copy link
Author

hhy885 commented Dec 12, 2022

Resolved by updating to the latest version nodejs!!

@wangrongding
Copy link
Owner

先参考这个方案。
#54 (comment)

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

2 participants