node版本v6.2.0
无论是用配置文件
{
"apps": [{
"name": "server",
"script": "app/server.js",
"node_args":"--harmony",
"watch": true
}]
}
还是命令行
pm2 start app/server.js --node-args="--harmony"
都不行!
我的node
的版本应该挺高的吧?
为什么还是不行?
node版本v6.2.0
无论是用配置文件
{
"apps": [{
"name": "server",
"script": "app/server.js",
"node_args":"--harmony",
"watch": true
}]
}
还是命令行
pm2 start app/server.js --node-args="--harmony"
都不行!
我的node
的版本应该挺高的吧?
为什么还是不行?
node 目前没有任何版本支持 import 语法
见 http://node.green/
https://github.com/williamkap...
一般是用 babel 转的。
有什么版本兼容问题,参见上表。
另外附一个浏览器里:
https://kangax.github.io/comp...