我正在尝试使用谷歌云函数将三维模型转换为图像。我的功能不会部署。我已经尝试在包文件中使用ypm安装和npm安装。
部署失败:
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"
}
}
不确定为什么npm install
在哪里。应该看起来像
{
"name":"sample-cloud-storage",
"version":"0.0.1",
"dependencies":{
"@google-cloud/storage":"^1.6.0",
"craster":"^3.1.5"
}
}