。这是我运行“ 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"
}
这是package-lock.json代码,其中显示了zapier-platform-core详细信息:
"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"
},
答案 0 :(得分:1)
Zapier Platform团队的David在这里。
该错误来自here,当我们在zapier-platform-core
中找不到node_modules
时弹出。
您发布的内容似乎应该在该位置。 "zapier-platform-core": "7.0.0"
中的package.json
,运行rm -rf node_modules && npm i
以确保所有内容都是新鲜的。
如果这不起作用,请在https://github.com/zapier/zapier-platform-cli/issues/new上发布问题。