-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
升级Node.js 8 之后,npm run dev 会出现问题 #476
Comments
升级到8.1.1可解决问题 |
Thanks @Binaryify! I actually couldn't do @rouwan does it work for you with newest node? |
谢谢~! |
'' ''
(node:22397) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited with code 3 直接vue init之后, |
fiexd. |
node一定要是6才可以解决吗? |
This is really annoying issue. Why should i limit myself to node 6? |
You can ofc also use a more up to date version 🙂 |
@posva i try 8.9 and it fails. |
node 8.9.3 also has this problem. |
运行npm run dev之后出现(node:7240) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??=' |
问题:
未处理的promise rejection
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: spawn cmd ENOENT
未处理的promise rejection 将终止Node.js 进程
DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
问题分析:
经过定位,发现是引用的包 opn 中有未捕获的错误导致。
这个错误在之前会打印出 未处理的promise.rejection ,但不会终止进程。
在升级Node.js 8 之后,会终止进程,导致无法正常启动开发服务器
建议:
替换或修复opn包中的未捕获promise rejection
The text was updated successfully, but these errors were encountered: