最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

我的nodejs程序在启动时说严格模式错误

网站源码admin15浏览0评论

我的nodejs程序在启动时说严格模式错误

我的nodejs程序在启动时说严格模式错误

使用节点init.js运行我的程序,但是会发生:

/root/nomp/node_modules/redis-errors/index.js:3
const Errors = process.version.charCodeAt(1) < 55 && process.version.charCodeA
^^^^^
SyntaxError: Use of const in strict mode.
回答如下:

此帖子已经回答了,很不错:

https://stackoverflow/questions/22603078/syntaxerror-use-of-const-in-strict-mode

发布评论

评论列表(0)

  1. 暂无评论