Linux提示SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside stric
原因是node版本太低、更新即可
命令如下:
1.npm install -g n 安装n模块专门用来管理node版本的
2.n stable 更新到最新稳定版
重启即可
原因是node版本太低、更新即可
命令如下:
1.npm install -g n 安装n模块专门用来管理node版本的
2.n stable 更新到最新稳定版
重启即可