发布到AWS Amplify时如何解决“ ENOTDIR”错误

时间:2019-08-06 16:43:42

标签: javascript amazon-web-services aws-amplify

我正在尝试将最新代码推送到云中的AWS Amplify项目。我们团队中的另一位开发人员做了amplify publish,一切顺利。当我执行amplify publish时,会引发ENOTDIR错误。我觉得那意味着我缺少一个依赖项或一个依赖项被破坏或什么?我很茫然。

我尝试做amplify codegenamplify env pull --restore,并且尝试在第一次为该Web安装所有内容时,删除并读取用yarn安装到我的应用目录中的@ aws-amplify / cli软件包应用程式。我知道它已正确连接到云,因为我和其他开发人员的amplify status输出匹配,以及amplify env get --name <environment name>命令输出匹配。

我每次放大推送时都会得到的错误是:

No changes detected
/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/gluegun/build/index.js:13
    throw up;
    ^

Error: spawn ENOTDIR
    at ChildProcess.spawn (internal/child_process.js:394:11)
    at spawn (child_process.js:542:9)
    at /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/builder.js:13:28
    at new Promise (<anonymous>)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/builder.js:6:10)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/publisher.js:9:18)
    at Object.publish (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/index.js:33:20)
    at Command.run (/usr/local/lib/node_modules/@aws-amplify/cli/src/commands/publish.js:41:29)
    at processTicksAndRejections (internal/process/task_queues.js:85:5) {
  errno: 'ENOTDIR',
  code: 'ENOTDIR',
  syscall: 'spawn'

感谢您提供有关如何解决此问题的任何意见!我乐于尝试过多尝试其他事情,因为我不想意外删除云中已有的内容。

0 个答案:

没有答案