
。这是我运行"zapier validate“命令时遇到的错误。我的package.json文件有以下代码:
"name": "github-example-app",
"version": "1.0.0",
"description": "An example app for the Zapier platform.",
"repository": "zapier/zapier-platform-app-github-example",
"homepage": "https://zapier.com/developer",
"author": "Zane Lyon <zane.lyon@zapier.com>",
"license": "BSD-3-Clause",
"main": "index.js",
"scripts": {
"test": "node node_modules/mocha/bin/mocha --recursive"
},
"engines": {
"node": "8.10.0",
"npm": ">=5.6.0"
},
"dependencies": {
"zapier-platform-core": "^7.0.0"
},
"devDependencies": {
"mocha": "^5.2.0",
"should": "^13.2.0"
}下面是Packe-lock.json代码,它显示了zapier-platform核心细节:
"zapier-platform-core": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/zapier-platform-core/-/zapier-platform-core-7.0.0.tgz",
"integrity": "sha512-8nJ9xs6Dig1/Hvvpcz3upD0lnPd/gg5YCpum2S5xLnsV5yuQXUcEIXuQq7T5PPksmQgO3ux57szN4EU2+q9RvA==",
"requires": {
"bluebird": "3.5.0",
"content-disposition": "0.5.2",
"dotenv": "5.0.1",
"form-data": "2.2.0",
"lodash": "4.17.10",
"node-fetch": "1.7.1",
"zapier-platform-schema": "7.0.0"
}
},我尝试将package.json代码更改为
"dependencies": {
"zapier-platform-core": "^7.0.0"
},至
"dependencies": {
"zapier-platform-core": "7.0.0"
},在这之后我得到了错误

我该怎么做才能解决这个问题?两天前这段代码运行良好。究竟是什么原因导致了这个错误?
发布于 2018-07-18 19:50:34
大卫在这里,来自萨皮尔平台团队。
该错误来自这里,当我们在node_modules中找不到zapier-platform-core时会弹出。
考虑到你发布的信息,它似乎应该在那里。使用"zapier-platform-core": "7.0.0"在您的package.json中,运行rm -rf node_modules && npm i以确保所有内容都是新鲜的。
如果这不起作用,请在https://github.com/zapier/zapier-platform-cli/issues/new上打开一个问题。
https://stackoverflow.com/questions/51403507
复制相似问题