【发布时间】:2021-01-22 20:55:19
【问题描述】:
我正在尝试使用谷歌云功能将 3d 模型转换为图像。我的功能不会部署。我尝试在包文件中使用 ypm install 和 npm install 。
部署失败:
Build failed: npm ERR! code EJSONPARSE
npm ERR! file /workspace/package.json
npm ERR! JSON.parse Failed to parse json`
npm ERR! JSON.parse Unexpected token n in JSON at position 120 while parsing near '...rage": "
^1.6.0"
npm ERR! JSON.parse npm install"craster"...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
Package.json 是
{
"name": "sample-cloud-storage",
"version": "0.0.1",
"dependencies": {
"@google-cloud/storage": "^1.6.0"
npm install"craster": "^3.1.5"
}
}
【问题讨论】:
标签: node.js json npm google-cloud-functions