火基模块安装



我想安装firebase-tools来实现firebase云功能。尝试通过NPM安装Firebase模块,但始终会出现错误。尝试了许多节点版本,例如6.11.5,8.9.4&9.5.0。所有版本都提出同一问题。您能帮我解决这个问题吗?节点版-V 9.5.0NPM -V5.6.0这是终端的输出。

C:Windowssystem32>npm install -g firebase
grpc@1.9.1 install C:UsersPankajKapoorAppDataRoamingnpmnode_modulesfire
basenode_modulesgrpc
node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/g
rpc-precompiled-binaries/node/grpc/v1.9.1/node-v59-win32-x64-unknown.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.9.1 and node@9.5.0 (no
de-v59 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python2.7", you can set the
PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:Program Filesnodejsnode_mo
dulesnpmnode_modulesnode-gyplibconfigure.js:483:19)
gyp ERR! stack at PythonFinder. (C:Program Filesnodejsnode_mod
ulesnpmnode_modulesnode-gyplibconfigure.js:508:16)
gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesgrac
eful-fspolyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:Program Filesnodejsnode.exe" "C:Program Filesnodej
snode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" "configure" "--f
allback-to-build" "--library=static_library" "--module=C:UsersPankajKapoor
AppDataRoamingnpmnode_modulesfirebasenode_modulesgrpcsrcnodeex
tension_binarynode-v59-win32-x64-unknowngrpc_node.node" "--module_name=grpc_
node" "--module_path=C:UsersPankajKapoorAppDataRoamingnpmnode_module
sfirebasenode_modulesgrpcsrcnodeextension_binarynode-v59-win32-x64
-unknown" "--python=python2.7"
gyp ERR! cwd C:UsersPankajKapoorAppDataRoamingnpmnode_modulesfirebasenod
e_modulesgrpc
gyp ERR! node -v v9.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Filesnodejsnode.e
xe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.j
s configure --fallback-to-build --library=static_library --module=C:UsersPanka
jKapoorAppDataRoamingnpmnode_modulesfirebasenode_modulesgrpcsrcnodeext
ension_binarynode-v59-win32-x64-unknowngrpc_node.node --module_name=grpc_node
--module_path=C:UsersPankajKapoorAppDataRoamingnpmnode_modulesfirebaseno
de_modulesgrpcsrcnodeextension_binarynode-v59-win32-x64-unknown --python=py
thon2.7' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:UsersPankajKapoorA
ppDataRoamingnpmnode_modulesfirebasenode_modulesgrpcnode_modulesnode-pre
-gyplibutilcompile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:160:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "C:Program Filesnodejsnode.exe" "C:UsersPank
ajKapoorAppDataRoamingnpmnode_modulesfirebasenode_modulesgrpcnod
e_modulesnode-pre-gypbinnode-pre-gyp" "install" "--fallback-to-build" "--l
ibrary=static_library"
node-pre-gyp ERR! cwd C:UsersPankajKapoorAppDataRoamingnpmnode_modulesfir
ebasenode_modulesgrpc
node-pre-gyp ERR! node -v v9.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode
_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build
--library=static_library --module=C:UsersPankajKapoorAppDataRoamingnpmnod
e_modulesfirebasenode_modulesgrpcsrcnodeextension_binarynode-v59-win32-x6
4-unknowngrpc_node.node --module_name=grpc_node --module_path=C:UsersPankajKa
poorAppDataRoamingnpmnode_modulesfirebasenode_modulesgrpcsrcnodeextens
ion_binarynode-v59-win32-x64-unknown --python=python2.7' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.9.1 install: node-pre-gyp install --fallback-to-build --library =static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.9.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersPankajKapoorAppDataRoamingnpm-cache_logs2018-02-19T15
_34_36_592Z-debug.log

看起来您需要安装python

python.com-下载Windows

尝试使用此命令

npm安装firebase -force

相关内容

  • 没有找到相关文章

最新更新