2017-07-04 16 views
0

私の反応するネイティブプロジェクトにfirebaseをインストールしようとしています。そうするために、私はいくつかの情報源に基づいていくつかの方法を試みました。私はcmdを開いて、プロジェクトのディレクトリに移動し、これらを試してみました:ネイティブに反応してファイアベースのインストールに失敗しました

  1. npm install --save firebase

  2. npm install firebase --save

  3. npm i react-native-firebase --save

しかし残念ながら、これのどれもがすることができません私の反応するネイティブプロジェクトにfirebaseをインストールしてください。いいえ1及び2の場合、それは言う:なし3については

npm ERR! Cannot read property 'find' of undefined 

をそれは言う:

npm ERR! path C:\Users\User\AndroidStudioProjects\auth\node_modules\react-native-firebase 
npm ERR! code ENOENT 
npm ERR! errno -4058 
npm ERR! syscall rename 
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\User\AndroidStudioProjects\auth\node_modules\react-native-firebase' -> 'C:\Users\User\AndroidStudioProjects\auth\node_modules\.react-native-firebase.DELETE' 
npm ERR! enoent This is related to npm not being able to find a file. 
npm ERR! enoent 

そして、私はfirebaseをインポートし、自分のアプリケーションを実行しようとしたとき、当然の

がエラーコード500を示しています火災基地を解決できませんでした。

答えて

1

以前のバージョンのnpmから保存されたキャッシュされた.npmディレクトリを削除してください。 〜/ .npmで
すなわち

rm -rf ~/.npm 

は、さらに助けをthis問題を見て配置されます。

関連する問題