How to introduce Stripe to Firebase - firebase

I am having trouble introducing Firebase into Stripe.
I have already deployed.
I am trying to this one (https://firebase.google.com/docs/use-cases/payments), and I have trouble in this phase.
I have already done 3.1 in the URL, but when I put npm install -g in functions, I get the error message below.
Can someone help me?
npm ERR! addLocal Could not install /Users/Takahiro/Desktop/RepFit-master/functions
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! No version provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/×××/Desktop/×××(site name)/functions/npm-debug.log

Related

Compatibility error that occurs during Firebase Functions deployment

The following error has occurred.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: functions#undefined
npm ERR! Found: firebase-admin#undefined
npm ERR! node_modules/firebase-admin
npm ERR! firebase-admin#"^111.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer firebase-admin#"^10.0.0 || ^11.0.0" from firebase-functions#4.2.1
npm ERR! node_modules/firebase-functions
npm ERR! firebase-functions#"^4.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2023-02-19T05_41_15_922Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2023-02-19T05_41_15_922Z-debug-0.log
After researching a solution, I was advised to use the following command, but the issue still remains unresolved.
npm install --force
npm install --legacy-peer-deps
Can anyone help me with a solution?
I just ran into this same issue installing dependencies for Firebase functions. What worked for me was going into the "package.json" file within the "functions" folder and changing
"firebase-admin": "^111.5.0"
to
"firebase-admin": "^11.0.0"
AFTER running firebase init functions, but before installing the dependencies with npm. Hope this helps!

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$

Using a repository as an npm dependency in meteor

I forked and changed an npm module today (node-cldr). Now I want to test if it still works with my meteor package (nemo64:translator). I found out that the less package has a way of referencing a commit on github. That did not work in my case. This is what happens if i try to run meteor test-packages ./:
npm ERR! Error: Problems were encountered
npm ERR! Please correct and try again.
npm ERR! missing: node-cldr#https://github.com/Nemo64/node-cldr/tarball/ea7e32150eb11418803760f87ff3958f569599b7, required by packages-for-meteor-smartpackage-16i2g97#0.0.0
npm ERR! extraneous: cldr#2.2.1 /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu/node_modules/cldr
npm ERR! at shrinkwrap_ (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/shrinkwrap.js:30:15)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/shrinkwrap.js:24:5
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/ls.js:44:30
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:130:5
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
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 Linux 3.13.0-32-generic
npm ERR! command "/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "shrinkwrap"
npm ERR! cwd /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While building plugin `language-compiler` in package `nemo64:translator`:
error: couldn't run `npm shrinkwrap`
Am I doing something wrong?

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?

Issue in installing grunt-cli

I'm trying to install grunt-cli. Here is the command I'm executing:
npm install -g grunt-cli
But I'm getting the following error message. My machine is running under corporate proxy. Is it due to that?? Could someone please let me know how to resolve this issue.
npm http GET http://registry.npmjs.org/grunt-cli
npm http 304 http://registry.npmjs.org/grunt-cli
npm http GET http://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm http 200 http://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm ERR! Error: shasum check failed for C:\Users\781650\AppData\Local\Temp\npm-6
640-cHN2e4JV\1401080165006-0.9552419183310121\tmp.tgz
npm ERR! Expected: e9ebc4047631f5012d922770c39378133cad10f4
npm ERR! Actual: 11b711d30f410c53585e0dee9d932cb24d49bab9
npm ERR! From: http://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\sha\index.
js:38:8
npm ERR! at ReadStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm
\node_modules\sha\index.js:85:7)
npm ERR! at ReadStream.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:920:16
npm ERR! at process._tickCallback (node.js:415: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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR!
i guess most likely due to proxy, try to set the proxy
npm config set proxy xxx
npm config set https-proxy xxx

Resources