尝试运行Friendly-pix Web(firebase示例项目)没有成功|函数预部署错误:命令以非零退出代码1

时间:2019-06-12 18:58:39

标签: node.js macos firebase

我正在尝试在Mac上运行friendlypix-web,并且为了我的生命,没有荒谬的错误和不可避免的失败,就无法获得所有自述文件。

  • 我尝试更改packcage-lock.json以避免使用har-validator。它可以工作直到无效。
  • 我尝试研究错误消息并尝试了所有方法,实际上是通过google提出的所有方法

完整日志如下

Erics-MBP:friendlypix-web er-c.macbook$ firebase deploy

=== Deploying to 'friendly-pix-a6d77'...

i  deploying database, storage, functions, hosting
Running command: npm --prefix functions install
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/base64-js-475c01ae/package.json'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/base64-js-475c01ae/base64js.min.js'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/base64-js-475c01ae/index.js'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/base64-js-475c01ae/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/mime-db-e4d0f48d/HISTORY.md'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/base64-js-475c01ae/README.md'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/mime-db-e4d0f48d/index.js'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/mime-db-e4d0f48d/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/mime-db-e4d0f48d/README.md'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/node-forge-c488a5e7/dist/forge.min.js.map'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/node-forge-c488a5e7/dist/prime.worker.min.js'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/protobufjs-c4159c54/dist/light/protobuf.js.map'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/node-forge-f0c18692/dist/forge.min.js.map'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/@firebase/database-07a29a46/dist/index.node.cjs.js'
npm WARN tar ENOENT: no such file or directory, open '/Users/er-c.macbook/friendlypix-web/functions/node_modules/.staging/node-forge-f0c18692/dist/prime.worker.min.js'
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/har-validator/-/har-validator-5.1.2.tgz
npm ERR! 404 
npm ERR! 404  'har-validator@5.1.2' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'functions'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/er-c.macbook/.npm/_logs/2019-06-12T18_47_15_351Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code1

我只想安装并成功部署它。

1 个答案:

答案 0 :(得分:0)

错误告诉您:)

npm ERR! 404 'har-validator@5.1.2' is not in the npm registry.

如果您检查this,则表示该软件包版本存在错误,可能对其进行了更新5.1.3,如果其他都没问题,请再试一次。

看看!