Ich kann sudo npm install --save firebase-admin
im Terminal nicht ausführen. Der Fehler Ich erhalte ist:"sudo npm install - save firebase-admin" kann nicht ausgeführt werden
npm WARN package.json [email protected] crypto is also the name of a node core module.
npm WARN package.json [email protected] No repository field.
npm ERR! Error: Invalid Package: expected types/jsonwebtoken but found @types/jsonwebtoken
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache/add-local-tarball.js:161:14
npm ERR! at process._tickCallback (node.js:448:13)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 16.1.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "firebase-admin"
npm ERR! cwd /Users/Henry/work_space/ServerMain
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! not ok code 0
ich nicht types/jsonwebtoken
oder irgendetwas in meiner package.json
Datei. Ich vermute, dies könnte sein, weil mein Knoten und Firebase veraltet ist? mein Knoten ist 1.4.28 und meine Firebase ist 2.4.2. Lassen Sie mich wissen, wenn Sie irgendwelche Ideen haben!
Ich weiß nicht, warum das nicht funktioniert, aber Ihre Knoten-Version scheint wirklich alt: die neueste Version von Knoten ist '7.2.0' (https://nodejs.org/en/) – ThomasThiebaud
Ihre Knoten-Version ist gerade älter als das: node -v v0.10.38 – str