我正在尝试在digitalocean服务器上设置Stradi API。设置完之后,我设置了一个代理通行证,以通过https提供我的文件。完成所有这些操作后,我尝试将字段添加到模型中,但是当我尝试保存时,收到以下消息
main.js:40 PUT http://dev.matteogassend.com:1337/content-type-builder/models/todo 500 (Internal Server Error)
有人可以帮忙吗?我尝试使用npm运行安装程序功能,但出现此错误
module.js:550
throw err;
^
Error: Cannot find module '/home/matteo/todoReact/admin/node_modules/strapi-helper-plugin/node_modules/.bin/cross-env'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! strapi-admin@3.0.0-alpha.14.5 prebuild: `APP_PATH=$APP_PATH node ./node_modules/strapi-helper-plugin/node_modules/.bin/cross-env NODE_ENV=production IS_ADMIN=true node ./node_modules/strapi-helper-plugin/lib/internals/scripts/loadAdminConfigurations.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the strapi-admin@3.0.0-alpha.14.5 prebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/matteo/.npm/_logs/2018-11-17T21_11_48_401Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! strapi-admin@3.0.0-alpha.14.5 setup: `node ./scripts/setup.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the strapi-admin@3.0.0-alpha.14.5 setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.