我正在尝试在Mac上运行friendlypix-web,对于我的生活,如果没有荒谬的错误和不可避免的失败,就无法通过所有自述文件。
- 我尝试更改packcage-lock.json以避免har-validator。它有点工作,直到它不工作。
- 我尝试研究错误消息并尝试了所有内容,实际上是通过谷歌出现的所有内容
完整日志如下
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
我只想安装然后成功部署它。
错误告诉您:)
npm ERR! 404 'har-validator@5.1.2' is not in the npm registry.
如果您检查此选项,则该软件包版本存在错误,可能会5.1.3
更新它,如果其他一切正常,请重试应该可以解决问题。
看一看!