安裝指定版本的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
相關文章
相關標籤/搜索