首页 > 解决方案 > Firebase Cloud Functions 在我的命令行中出现无效的标签名称“glob”错误

问题描述

我按照这个链接来组织我的 firebase 云功能,而不是将我的所有代码都放在一个 index.ts 文件中。但是,当我运行该行时:

npm i -S glob, camelcase

在我的控制台中,它正在重新调整:

npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "glob,": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/johndoe/.npm/_logs/2018-12-24T19_46_03_264Z-debug.log

标签: firebasenpmgoogle-cloud-functions

解决方案


Use npm i glob camelcase instead. The comma is not correct here. The -S is not even a documented flag for npm (at least not on the man page for my installation).


推荐阅读