Since updating to firebase-functions 2.0.5, cannot deploy functions - firebase

firebase-functions: 2.0.5
firebase-tools: 4.2.1
firebase-admin: 6.0.0
node: 6.11.5
npm: 6.4.1
I've been trying for a while to get everything in order but I'm completely lost. All of my functions were previously deployed and working fine, but not anymore. When I try to deploy, none of the functions deploy properly. Every one fails and gives this same error:
Deployment error.
Build failed: exit status 254
npm WARN lifecycle node#6.14.4~preinstall: cannot run in wd %s %s (wd=%s) node#6.14.4 node installArchSpecificPackage /workspace/node_modules/.staging/node-378c0d58
functions# /workspace
-- apns#0.1.0
-- q#1.5.1
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10
npm ERR! path /workspace/node_modules/node/bin/node
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/workspace/node_modules/node/bin/node'
npm ERR! enoent ENOENT: no such file or directory, chmod '/workspace/node_modules/node/bin/node'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log

Related

Atom, Structure-View installation problem

i'm new here, and need some help for fix this problem with installing Structure-View on Atom. I tried to install it with cmd and with install package, but it give me the same error... i can't understand what it say me...
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated lodash.isarray#4.0.0: This package is deprecated. Use Array.isArray.
npm WARN deprecated node-uuid#1.4.8: Use uuid module instead
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/ramitos/tern-jsx.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\carlo\.atom\.apm\_logs\2020-09-08T10_33_19_647Z-debug.log
if is helpfull i can share the full log
I solved the problem. I have installed Git

npm ERR! Linux 4.4.0-31-generic

what's the cause of this error, and how do I fix it. I'm trying to install NPM and Nodejs. Please, quick response needed. This is truly pulling my hairs. I never knew it is this hard to deploy a meteor app because of all the dependencies.
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/opt/meteor/.nvm/versions/node/v4.8.4/bin/node" "/opt/meteor/.nvm/versions/node/v4.8.4/bin/npm" "rebuild" "--update-binary"
npm ERR! node v4.8.4
npm ERR! npm v2.15.11
npm ERR! path /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/npm-debug.log
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/opt/meteor/.nvm/versions/node/v4.8.4/bin/node" "/opt/meteor/.nvm/versions/node/v4.8.4/bin/npm" "install"
npm ERR! node v4.8.4
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle#0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the meteor-dev-bundle#0.0.0 install script 'node npm-rebuild.js'.
npm ERR! This is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node npm-rebuild.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs meteor-dev-bundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/webapps/schoolapps/bundle/programs/server/npm-debug.log
meteor#christdoes:~/webapps/schoolapps/bundle/programs/server$ ^C
meteor#christdoes:~/webapps/schoolapps/bundle/programs/server$

Atom failed install packages

If I install any packages I get error log below. Some packages were going to install. Do´t you know how to fix it?
C:\Users\Roman\AppData\Local\Temp\apm-install-dir-117728-8144-tjhcy5.164lkutyb9
`-- (empty)
npm ERR! not a package C:\Users\Roman\.atom\.apm\jquery\2.1.4\package.tgz
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Roman\AppData\Local\Temp\apm-install-dir-117728-8144-tjhcy5.164lkutyb9\package.json'
npm WARN apm-install-dir-117728-8144-tjhcy5.164lkutyb9 No description
npm WARN apm-install-dir-117728-8144-tjhcy5.164lkutyb9 No repository field.
npm WARN apm-install-dir-117728-8144-tjhcy5.164lkutyb9 No README data
npm WARN apm-install-dir-117728-8144-tjhcy5.164lkutyb9 No license field.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Users\\Roman\\AppData\\Local\\atom\\app-1.19.3\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Roman\\AppData\\Local\\atom\\app-1.19.3\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Roman\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Roman\\.atom\\.apmrc" "install" "C:\\Users\\Roman\\AppData\\Local\\Temp\\d-117728-8144-m4vd0u.pvq54p9zfr\\package.tgz" "--runtime=electron" "--target=1.6.9" "--arch=x64" "--global-style" "--msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! path C:\Users\Roman\AppData\Local\Temp\apm-install-dir-117728-8144-tjhcy5.164lkutyb9\node_modules\.staging\jquery-c839d795\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Roman\AppData\Local\Temp\apm-install-dir-117728-8144-tjhcy5.164lkutyb9\node_modules\.staging\jquery-c839d795\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Roman\AppData\Local\Temp\apm-install-dir-117728-8144-tjhcy5.164lkutyb9\node_modules\.staging\jquery-c839d795\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Roman\AppData\Local\Temp\apm-install-dir-117728-8144-tjhcy5.164lkutyb9\npm-debug.log
npm ERR! code 1

while running meteor app i got this error message

iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d/npm-debug.log
npm ERR! not ok code 0
iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While Building package `iron-router`:
error: couldn't install npm package
While Building package `iron-router`:
error: couldn't install npm package
=> Your application has errors. Waiting for file change.
If you run your initial command with user permissions (which is not clear from your answer - please print the command next time), then it needs to be able to access (read, write, execute) other directories with the same permissions.
You can change ownership with:
chown -R $USER <directory>
where in your case <directory> is /home/john and -R is for recursive, so it will change all subdirectories too, which is exactly what you want.
See here for more details.

Ghost install npm

I get an error when I run this command:
npm install --production
Help please.
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/root/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! System Linux 2.6.32-042stab088.4
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /root
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.4
npm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
I tried to execute the command in the directory with Ghost. And came out this error:
sqlite3#2.2.0 install /var/www/node_modules/sqlite3
node-pre-gyp install --fallback-to-build
/usr/bin/env: node: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! sqlite3#2.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the sqlite3#2.2.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab088.4
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /var/www
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/npm-debug.log
npm ERR! not ok code 0`
From your output it seems to me that you are not in the Ghost install directory. Could you please try to cd to the directory where the source of Ghost is located and run the command again?

Resources