安装Firebase函数的依赖项时出现错误404

时间:2020-07-13 12:21:13

标签: firebase npm google-cloud-functions

我正在尝试安装以下内容

npm install --save express body-parser firebase functions-helper

但我一直收到这些错误

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/functions-helper - Not found
npm ERR! 404
npm ERR! 404  'functions-helper@latest' 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
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!     C:\Users\admin\AppData\Roaming\npm-cache\_logs\2020-07-13T12_53_21_822Z-debug.log

到目前为止,我尝试这样做

npm clean cache

将节点升级到最新版本,但仍然出现相同的错误

2 个答案:

答案 0 :(得分:1)

它告诉您您正在尝试安装一个不存在的软件包,我找不到名为functions-helper的软件包,您是说firebase-functions-helper

答案 1 :(得分:1)

没有称为“功能帮助器”的模块。如果您要使用Firebase工具编写Cloud Functions,则需要安装documentation中所述的名为“ firebase-functions”的模块。