我正在尝试用jspm安装ReactFire。我使用的命令是:
jspm install npm:reactfire
它安装一组依赖项,然后给出以下错误:
warn Error on build
Error: EPERM: operation not permitted, open 'C:\Users\aldel\AppData\Local\.jspm\packages\npm\firebase@3.1.0\app.js'
at Error (native)
err Error building package npm:firebase.
war
下面是一个工作脚本。但让我烦恼的是:
- name: install npm
run: npm i npm@latest
working-directory: ./functions
我必须安装NPM的最新版本,否则我会得到以下错误:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my be
我向Vercel部署了一个使用firebase的react应用程序。构建退出状态代码1。我已经安装了防火墙使用:"npm安装防火墙“,它正在运行良好的本地环境。可能的错误是什么?
Creating an optimized production build...
Failed to compile.
./src/firebase.js
Cannot find module: 'firebase'. Make sure this package is installed.
You can install this package by running: npm insta
在命令行中执行以下步骤来安装Ember、Firebase和带有节点的EmberFire之后,我会收到一个错误消息,说明在app/适配器/application.js中没有定义Firebase
npm install -g ember-cli
npm install -g bower
npm install -g phantomjs
ember new my-new-app
cd my-new-app
ember server
此时,我可以在localhost:4200看到我的烬应用程序,默认输出为“欢迎来到Ember.js”。
npm install firebase
npm ins
我正在尝试使用firebase托管我的react应用程序,但我似乎无法在git base上运行firebase命令。为了安装firebase,我运行了npm install -g firebase-tools。我还确保C:\Users\User\AppData\Roaming\npm在windows环境变量中。这是我每次运行firebase命令时得到的错误
C:\Users\ALEX PC\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found
我目前正在使用节点10.10.0版和NPMVersion6.4.1试图安装firebase,以便为已经创建的firebase项目处理云功能。它在其他系统上运行良好,但无法在我的MAC上安装防火墙工具。我也安装了一个新版本的节点,希望得到纠正错误,但它没有帮助。我也尝试使用'sudo‘和’-force‘与npm一起安装,但也没有帮助。这是我得到的错误的完整日志。请帮助这里是错误日志
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/10.10.0/bin/node',
1
当我尝试用以下方式安装firebase-tools时:
npm install -g firebase-tools
我得到以下错误:
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (No
我遵循以下步骤:
Firebase (命令行接口)需要Node.js和npm,您可以按照上的说明安装它们
- Installing Node.js also installs npm
安装好Node.js和npm后,通过npm安装Firebase CLI:
npm install -g firebase-tools
- This installs the globally available firebase command. To update to the latest version, re-run the same command
初始化项目:
运行
D:\Firebase>npm安装防火墙-函数@最新防火墙-管理@最新-保存
函数@2.0.5安装后D:\firebase\节点_模块\firebase-函数
节点./升级-警告
======== WARNING! ========
This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
To see a complete list of these breaking changes, please
当我通过在函数文件夹中运行命令firebase-tools将我的sudo npm i -g firebase-tools从8.6.0版本升级到8.7.0时,我会得到以下警告:
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/.npm/bin/firebase -> /.npm/lib/node_modules/firebase-tools/lib/bin/firebase.js
npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0
我是相当新的反应原住民,所以我一直遵循“完整的反应原住民和Redux课程”的斯蒂芬格里德。在第9节,第59课,他使用npm安装了Firebase和"npm安装--保存防火墙“,我也是这样做的,但是这只适用于我的iOS。每当我在Android模拟器上运行这个应用程序时,我都会看到这个错误,上面写着Objects are not valid as a React child。
编辑:我将尽量按照akraf的建议更好地解释这个问题。要重新创建此错误,我需要做的唯一一件事是创建一个。然后通过npm将Firebase安装到项目目录。一旦我向App.js文件中添加了一行“从' fireb