【发布时间】:2018-05-10 23:28:57
【问题描述】:
我在 IBM Cloud 上尝试从管理选项板安装 node-red-node-smooth,但出现错误。我也尝试了其他几个包。我在调试日志中得到的错误显示:
npm WARN saveError ENOENT: no such file or directory, open '/home/vcap/app/.node-red/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/vcap/app/.node-red/package.json'
npm WARN .node-red No description
npm WARN .node-red No repository field.
npm WARN .node-red No README data
npm WARN .node-red No license field.
+ node-red-node-smooth@0.1.0
updated 1 package in 4.726s
npm ERR! Object.entries is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vcap/app/.npm/_logs/2018-05-10T15_01_53_296Z-debug.log
日志文件有一个堆栈跟踪,以此开头:
106 verbose stack TypeError: Object.entries is not a function
有什么明显的我做错了吗?
【问题讨论】: