Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install cloud functions #640

Closed
Levelleor opened this issue Jan 27, 2018 · 5 comments
Closed

Can't install cloud functions #640

Levelleor opened this issue Jan 27, 2018 · 5 comments

Comments

@Levelleor
Copy link

Levelleor commented Jan 27, 2018

Version info

Firebase version: 3.17.4

Steps to reproduce

cd functions
npm install

Expected behavior

Successful functions installation.

Actual behavior

npm ERR! path C:\Users\Admin\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Admin\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev' -> 'C:\Users\Admin\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules.abbrev.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2018-01-27T03_43_22_282Z-debug.log

How do I install firebase cloud functions, am I doing something wrong? Hosting works perfectly. I don't understand what's happening, never seen this before...

@Levelleor Levelleor changed the title Can't install clound functions Can't install cloud functions Jan 27, 2018
@jeeteshnariya
Copy link

can't install firebase tools

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
C:\Users\Mi10\AppData\Roaming\npm\firebase -> C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase

> grpc@1.4.1 install C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.4.1/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.4.1 and node@8.2.1 (node-v57 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\Mi10\AppData\Local\Programs\Python\Python36-32\python.EXE", you can set the PYTHON env variable. gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\Mi10\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Mi10\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Users\Mi10\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Mi10\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\Mi10\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\node_modules\\grpc\\src\\node\\extension_binary\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\Mi10\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\node_modules\\grpc\\src\\node\\extension_binary"
gyp ERR! cwd C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc
gyp ERR! node -v v8.2.1
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 Files\nodejs\node.exe C:\Users\Mi10\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:921:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Mi10\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc
node-pre-gyp ERR! node -v v8.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Mi10\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Mi10\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary' (1)npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 (node_modules\firebase-tools\node_modules\grpc):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ firebase-tools@3.17.4
added 502 packages and updated 1 package in 165.515s ```

@dudukk1312
Copy link

dudukk1312 commented Jan 27, 2018

I have the same problem above. Please fix it. I think this is because grpc@1.4.1 install file has been remove on the server, so the tools could not install it.

PS C:\WINDOWS\system32> npm install -g firebase-tools
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
C:\Users\duduk\AppData\Roaming\npm\firebase -> C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\bin\fireba
se

> grpc@1.4.1 install C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.4.1/node
-v59-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.4.1 and node@9.4.0 (node-v59 ABI) (falling back to source comp
ile with node-gyp)
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: getaddrinfo EAI_AGAIN nodejs.org:443
gyp ERR! stack     at Object._errnoException (util.js:1003:13)
gyp ERR! stack     at errnoException (dns.js:60:15)
gyp ERR! stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:26)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\duduk\\AppData\\Roaming\\npm\\node_modules\\npm\\node
_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\
duduk\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\node_modules\\grpc\\src\\node\\extension_binary\\grpc_node.n
ode" "--module_name=grpc_node" "--module_path=C:\\Users\\duduk\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\nod
e_modules\\grpc\\src\\node\\extension_binary" "--python=C:\\Users\\duduk\\.windows-build-tools\\python27\\python.exe" "-
-msvs_version=2015"
gyp ERR! cwd C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc
gyp ERR! node -v v9.4.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 Files\nodejs\node.exe C:\Users\duduk\AppData\Roaming\npm\no
de_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\
Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary\grpc_node.node -
-module_name=grpc_node --module_path=C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\sr
c\node\extension_binary --python=C:\Users\duduk\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\
node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.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/child_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\duduk\\AppData\\Roaming\\npm\\node_modules\\
firebase-tools\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--li
brary=static_library"
node-pre-gyp ERR! cwd C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc
node-pre-gyp ERR! node -v v9.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\duduk\AppData\Roaming\npm\node_modules\npm\node_modules\nod
e-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\duduk\AppData\Roaming\npm
\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary\grpc_node.node --module_name=grpc_node --module
_path=C:\Users\duduk\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\grpc\src\node\extension_binary --pytho
n=C:\Users\duduk\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 (node_modules\firebase-tools\node_modules\grpc):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 install: `node-pre-gyp install --fallback-to-build --library=
static_library`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ firebase-tools@3.17.4

@mbleigh
Copy link
Contributor

mbleigh commented Jan 29, 2018

NPM install errors are outside the purview of what we can really help with, unfortunately. I'd recommend you get on the latest (stable) Node version (v8.X) as well as the latest version of NPM:

npm install -g npm@latest

@mbleigh mbleigh closed this as completed Jan 29, 2018
@Levelleor
Copy link
Author

Levelleor commented Jan 29, 2018

@mbleigh Wait, what am I supposed to do then? I have the latest node and npm versions and you're telling me there is nothing you can do? At least give me some list of actions that could definitely fix this even if they require some reinstalls.

node -v
v8.9.1
npm -v
5.6.0

@mbleigh
Copy link
Contributor

mbleigh commented Jan 29, 2018

Please follow up on grpc/grpc-node#121 -- I'm trying to consolidate grpc install issues there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants