nodejs|nodejs vue SyntaxError:Block-scoped declarations (let,const,function,class) not yet supported

下午在git上导入之前写的代码到本地环境,执行npm run dev报错。
nodejs|nodejs vue SyntaxError:Block-scoped declarations (let,const,function,class) not yet supported
文章图片

在我之前的环境中是没有问题的,这个错误信息也没看懂是什么原因引起的,
【nodejs|nodejs vue SyntaxError:Block-scoped declarations (let,const,function,class) not yet supported】猜测可能是nodejs版本太低,于是重新下载了一个windows安装包,v6.11.0版本
重新运行脚本,成功启动。
转载于:https://www.cnblogs.com/guazi/p/7008719.html

    推荐阅读