安装指定版本的nodejs,解决Block-scoped declarations (let, const, function, class) not yet supported outside报错

今天在学习ES6 let命令时,报错Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at 在网上寻找错误的答案,发现是nodejs版本太低的问题。 首先 node -v 查看当前版本,如果当前版本不合适可以安装指定版本的nodejs 升级之前需要安装n模块,s
相关文章
相关标签/搜索