【发布时间】:2020-09-08 09:40:24
【问题描述】:
当我尝试在 Azure 应用程序控制台上运行任何 npm 命令(如 npm i)时,出现以下错误。这是一个带有 Node v10.19.0 和 Npm v6.13.4 的 Windows 实例
格式化:
function(t) {
if (void 0 === t && (t = "legacy"), this._body instanceof b) return this._body.toString();
if (this._body instanceof ArrayBuffer) switch (t) {
case "legacy":
return String.fromCharCode.apply(null, new Uint16Array(this._body));
case "iso-8859":
return String.fromCharCode.apply(null, new Uint8Array(this._body));
default:
throw new Error("Invalid value for encodingHint: " + t)
}
return null == this._body ? "" : "object" == typeof this._body ? JSON.stringify(this._body, null, 2) : this._body.toString()
}
有什么想法吗?
【问题讨论】:
标签: node.js azure npm azure-functions azure-web-app-service