How can I successfully deploy firebase functions? - node.js

I'm trying to deploy my Firebase functions using the Firebase CLI (firebase deploy --only functions), but I keep getting the following error:
Build failed: npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Missing: #firebase/app-compat#0.2.3 from lock file
npm ERR! Missing: #firebase/app#0.9.3 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: idb#7.0.1 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2023-02-18T13_26_52_861Z-debug-0.log; Error ID: beaf8772
Build failed: npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Missing: #firebase/app-compat#0.2.3 from lock file
npm ERR! Missing: #firebase/app#0.9.3 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: idb#7.0.1 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2023-02-18T13_27_30_745Z-debug-0.log; Error ID: beaf8772
Build failed: npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Missing: #firebase/app-compat#0.2.3 from lock file
npm ERR! Missing: #firebase/app#0.9.3 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: idb#7.0.1 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2023-02-18T13_27_26_236Z-debug-0.log; Error ID: beaf8772
Build failed: npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Missing: #firebase/app-compat#0.2.3 from lock file
npm ERR! Missing: #firebase/app#0.9.3 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: #firebase/component#0.6.3 from lock file
npm ERR! Missing: #firebase/logger#0.4.0 from lock file
npm ERR! Missing: #firebase/util#1.9.2 from lock file
npm ERR! Missing: idb#7.0.1 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2023-02-18T13_27_31_642Z-debug-0.log; Error ID: beaf8772
Functions deploy had errors with the following functions:
randomNumberCall(europe-west3)
randomNumberRequest(europe-west3)
stripeCheckout(europe-west3)
stripeCheckoutWithoutDbQueries(europe-west3)
i functions: cleaning up build files...
Error: There was an error deploying functions:
- Error Failed to create function stripeCheckout in region europe-west3
- Error Failed to create function stripeCheckoutWithoutDbQueries in region europe-west3
- Error Failed to create function randomNumberCall in region europe-west3
- Error Failed to create function randomNumberRequest in region europe-west3
Everything works fine when I test the functions with firebase emulators.
Here's the relevant part of my index.js file:
const stripe = require("stripe")(
"sk_test_XXXXXXXX"
);
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin.initializeApp(functions.config().firebase);
exports.stripeCheckout = functions
.region("europe-west3")
.https.onCall(async (data, context) => {
console.log(data);
const session = await stripe.checkout.sessions.create({
payment_method_types: ["card"],
line_items: data.items.map((item) => ({
quantity: 1,
price_data: {
currency: "eur",
unit_amount: item.price * 100,
product_data: {
name: item.summary,
// description: "description!"
images: [item.image]
}
}
})),
mode: "payment",
success_url: "http://localhost:4205/home?action=success",
cancel_url: "http://localhost:4205/home?action=cancel"
});
return session.id;
});
Any ideas on what could be causing this error? I appreciate your help! 🙏🏻
I tried running npm install and npm ci to make sure all dependencies are installed, but it did not work.
I also watched this video and did everything the same way: https://www.youtube.com/watch?v=r0tlQABfm9k&t=1064s&ab_channel=D-I-Ry

Related

how to read the dependencies conflicting report

most resources in the internet and answers in stackoverflow just mention to add --force to npm install
I want to be able to determine which peerDependency conflicts with which one.
this is an example that I recently encountered, but if you have another conflicting report, it is welcome
npm ERR!
npm ERR! While resolving: #engineers/ngx-content-core#1.1.2
npm ERR! Found: #engineers/ngx-utils#1.1.1
npm ERR! node_modules/#engineers/ngx-utils
npm ERR! workspace packages\ngx-utils from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! #engineers/ngx-utils#"1.1.0" from #engineers/ngx-content-core#1.1.2
npm ERR! packages/ngx-content-core
npm ERR! #engineers/ngx-content-core#1.1.2
npm ERR! node_modules/#engineers/ngx-content-core
npm ERR! workspace packages\ngx-content-core from the root project
npm ERR!
npm ERR! Conflicting peer dependency: #angular/core#14.2.2
npm ERR! node_modules/#angular/core
npm ERR! peer #angular/core#"14.2.2" from #angular/common#14.2.2
npm ERR! node_modules/#angular/common
npm ERR! peer #angular/common#"^14.0.6" from #engineers/ngx-utils#1.1.0
npm ERR! node_modules/#engineers/ngx-utils
npm ERR! #engineers/ngx-utils#"1.1.0" from #engineers/ngx-content-core#1.1.2
npm ERR! packages/ngx-content-core
npm ERR! #engineers/ngx-content-core#1.1.2
npm ERR! node_modules/#engineers/ngx-content-core
npm ERR! peer #angular/common#"14.2.2" from #angular/platform-browser#14.2.2
npm ERR! node_modules/#angular/platform-browser
npm ERR! peer #angular/platform-browser#"^14.0.6" from #engineers/ngx-content-core#1.1.2
npm ERR! packages/ngx-content-core
npm ERR! #engineers/ngx-content-core#1.1.2
npm ERR! node_modules/#engineers/ngx-content-core

I'm trying to deploy my simple typescript app to firebase cloud functions. But I have got this error

Build failed: ...sing: idb#7.0.1 from lock file
npm ERR! Missing: #firebase/app-check-types#0.4.0 from lock file
npm ERR! Missing: selenium-webdriver#4.1.2 from lock file
npm ERR! Missing: #firebase/auth-types#0.11.0 from lock file
npm ERR! Missing: #firebase/webchannel-wrapper#0.6.2 from lock file
npm ERR! Missing: #firebase/firestore-types#2.5.0 from lock file
npm ERR! Missing: #firebase/app-check-interop-types#0.1.0 from lock file
npm ERR! Missing: #firebase/messaging-interop-types#0.1.0 from lock file
npm ERR! Missing: #firebase/functions-types#0.5.0 from lock file
npm ERR! Missing: #firebase/installations-types#0.4.0 from lock file
npm ERR! Missing: #firebase/performance-types#0.1.0 from lock file
npm ERR! Missing: #firebase/remote-config-types#0.2.0 from lock file
npm ERR! Missing: #firebase/storage-types#0.6.0 from lock file
npm ERR! Missing: #grammyjs/types#2.8.2 from lock file
npm ERR! Missing: chokidar#3.5.3 from lock file
npm ERR! Missing: debug#3.2.7 from lock file
npm ERR! Missing: ignore-by-default#1.0.1 from lock file
npm ERR! Missing: pstree.remy#1.1.8 from lock file
npm ERR! Missing: semver#5.7.1 from lock file
npm ERR! Missing: simple-update-notifier#1.0.7 from lock file
npm ERR! Missing: supports-color#5.5.0 from lock file
npm ERR! Missing: touch#3.1.0 from lock file
npm ERR! Missing: undefsafe#2.0.5 from lock file
npm ERR! Missing: anymatch#3.1.2 from lock file
npm ERR! Missing: fsevents#2.3.2 from lock file...
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
npm ERR! [--script-shell <script-shell>]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2022-08-22T07_49_29_487Z-debug-0.log; Error ID: beaf8772
Functions deploy had errors with the following functions:
router(us-central1)
i functions: cleaning up build files...
It looks like you have not executed "npm install". After deployment you have to install your dependencies

`npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. - Next JS

I am trying to host my app on heroku and when I deploy it using heroku cli or github
it gives me following error:
ERROR
-----> Installing dependencies
Installing node modules
npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Missing: #babel/core#7.18.9 from lock file
npm ERR! Missing: #ampproject/remapping#2.2.0 from lock file
npm ERR! Missing: #babel/generator#7.18.9 from lock file
npm ERR! Missing: #babel/helper-compilation-targets#7.18.9 from lock file
npm ERR! Missing: #babel/helper-module-transforms#7.18.9 from lock file
npm ERR! Missing: #babel/helpers#7.18.9 from lock file
npm ERR! Missing: #babel/parser#7.18.9 from lock file
npm ERR! Missing: #babel/template#7.18.6 from lock file
npm ERR! Missing: #babel/traverse#7.18.9 from lock file
npm ERR! Missing: gensync#1.0.0-beta.2 from lock file
npm ERR! Missing: json5#2.2.1 from lock file
npm ERR! Missing: #jridgewell/gen-mapping#0.1.1 from lock file
npm ERR! Missing: #jridgewell/trace-mapping#0.3.14 from lock file
npm ERR! Missing: #jridgewell/gen-mapping#0.3.2 from lock file
npm ERR! Missing: jsesc#2.5.2 from lock file
npm ERR! Missing: #babel/compat-data#7.18.8 from lock file
npm ERR! Missing: #babel/helper-validator-option#7.18.6 from lock file
npm ERR! Missing: #babel/helper-environment-visitor#7.18.9 from lock file
npm ERR! Missing: #babel/helper-simple-access#7.18.6 from lock file
npm ERR! Missing: #babel/helper-split-export-declaration#7.18.6 from lock file
npm ERR! Missing: #babel/helper-function-name#7.18.9 from lock file
npm ERR! Missing: #babel/helper-hoist-variables#7.18.6 from lock file
npm ERR! Missing: globals#11.12.0 from lock file
npm ERR! Missing: #jridgewell/set-array#1.1.2 from lock file
npm ERR! Missing: #jridgewell/sourcemap-codec#1.4.14 from lock file
npm ERR! Missing: #jridgewell/resolve-uri#3.1.0 from lock file
npm ERR! Missing: typescript#4.7.4 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
npm ERR! [--script-shell <script-shell>]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.wvu98/_logs/2022-07-24T13_15_41_978Z-debug-0.log
-----> Build failed
I tried deleting package-lock.json but it didn't worked. I have also tried npm ci but that too didn't worked for me. I even search on stack overflow but cloud not find similar problem.
npm i use package.json and create package-lock.json, then npm ci use package-lock.json,
so if delete the packeage-lock.json you can't run npm ci, need to run npm i.
If run npm i --legacy-peer-deps must be change npm ci to npm ci --legacy-peer-deps, because my error is this.

Vs code not working in my linux npm err sowing?

protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ sudo npm install
[sudo] password for protons:
npm notice
npm notice New minor version of npm available! 8.12.1 -> 8.13.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.13.2
npm notice Run npm install -g npm#8.13.2 to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-otp-input#2.4.0
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! react#"17.0.2" from the root project
npm ERR! peer react#">=16.0.0" from #ant-design/icons#4.7.0
npm ERR! node_modules/#ant-design/icons
npm ERR! #ant-design/icons#"^4.7.0" from the root project
npm ERR! 77 more (#emotion/react, #emotion/styled, #icons/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.2.0" from react-otp-input#2.4.0
npm ERR! node_modules/react-otp-input
npm ERR! react-otp-input#"^2.3.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#16.14.0
npm ERR! node_modules/react
npm ERR! peer react#"^16.2.0" from react-otp-input#2.4.0
npm ERR! node_modules/react-otp-input
npm ERR! react-otp-input#"^2.3.1" 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! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-07-01T06_16_23_962Z-debug-0.log
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ ^C
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ npm install -g npm#8.13.2
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! dest /usr/local/lib/node_modules/.npm-i9nnxROI
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/usr/local/lib/node_modules/npm',
npm ERR! dest: '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/protons/.npm/_logs/2022-07-01T06_20_59_076Z-debug-0.log
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ sudo npm install -g npm#8.13.2
changed 24 packages, and audited 202 packages in 4s
11 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ sudo npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-otp-input#2.4.0
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! react#"17.0.2" from the root project
npm ERR! peer react#">=16.0.0" from #ant-design/icons#4.7.0
npm ERR! node_modules/#ant-design/icons
npm ERR! #ant-design/icons#"^4.7.0" from the root project
npm ERR! 77 more (#emotion/react, #emotion/styled, #icons/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.2.0" from react-otp-input#2.4.0
npm ERR! node_modules/react-otp-input
npm ERR! react-otp-input#"^2.3.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#16.14.0
npm ERR! node_modules/react
npm ERR! peer react#"^16.2.0" from react-otp-input#2.4.0
npm ERR! node_modules/react-otp-input
npm ERR! react-otp-input#"^2.3.1" 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! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-07-01T06_22_32_536Z-debug-0.log
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ ^C
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$ npm fund
natty_hatty_facility_portal#0.1.0
protons#protons-HP-EliteBook-840-G3:~/Desktop/NH_Facility_Portal_V0$
First delete package-lock.json and node_modules folder
then run
npm install --legacy-peer-deps
or
sudo npm install --legacy-peer-deps
try with :
npm install --legacy-peer-deps
Run the following command.
sudo npm intall --force

Error when trying to npm install -g #aws-amplify/cli

new to this, I'm trying to install aws amplify from the command line and it keeps throwing me an err messages: I tried sudo, tried the safe route to no avail. I'm new to node and understanding dependencies etc. and not sure what I've done wrong!
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: graphql#14.7.0
npm ERR! node_modules/#aws-amplify/cli/node_modules/graphql
npm ERR! graphql#"^14.5.8" from #aws-amplify/amplify-category-api#1.1.10
npm ERR! node_modules/#aws-amplify/cli/node_modules/#aws-amplify/amplify-category-api
npm ERR! #aws-amplify/amplify-category-api#"1.1.10" from #aws-amplify/cli#7.6.8
npm ERR! node_modules/#aws-amplify/cli
npm ERR! #aws-amplify/cli#"*" from the root project
npm ERR! #aws-amplify/amplify-category-api#"1.1.10" from amplify-container-hosting#2.4.10
npm ERR! node_modules/#aws-amplify/cli/node_modules/amplify-container-hosting
npm ERR! amplify-container-hosting#"2.4.10" from #aws-amplify/cli#7.6.8
npm ERR! node_modules/#aws-amplify/cli
npm ERR! #aws-amplify/cli#"*" from the root project
npm ERR! graphql#"^14.5.8" from #aws-amplify/graphql-auth-transformer#0.5.7
npm ERR! node_modules/#aws-amplify/cli/node_modules/#aws-amplify/graphql-auth-transformer
npm ERR! #aws-amplify/graphql-auth-transformer#"0.5.7" from #aws-amplify/cli#7.6.8
npm ERR! node_modules/#aws-amplify/cli
npm ERR! #aws-amplify/cli#"*" from the root project
npm ERR! #aws-amplify/graphql-auth-transformer#"0.5.7" from amplify-provider-awscloudformation#5.8.7
npm ERR! node_modules/#aws-amplify/cli/node_modules/amplify-provider-awscloudformation
npm ERR! amplify-provider-awscloudformation#"5.8.7" from #aws-amplify/cli#7.6.8
npm ERR! node_modules/#aws-amplify/cli
npm ERR! #aws-amplify/cli#"*" from the root project
npm ERR! 2 more (#aws-amplify/amplify-category-api, amplify-util-mock)
npm ERR! 1 more (#aws-amplify/graphql-relational-transformer)
npm ERR! 88 more (amplify-app, amplify-codegen, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer graphql#"^15.0.0" from relay-compiler#12.0.0
npm ERR! node_modules/#aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin/node_modules/#graphql-codegen/visitor-plugin-common/node_modules/relay-compiler
npm ERR! relay-compiler#"12.0.0" from #graphql-tools/relay-operation-optimizer#6.4.1
npm ERR! node_modules/#aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin/node_modules/#graphql-codegen/visitor-plugin-common/node_modules/#graphql-tools/relay-operation-optimizer
npm ERR! #graphql-tools/relay-operation-optimizer#"^6.3.7" from #graphql-codegen/visitor-plugin-common#2.5.2
npm ERR! node_modules/#aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin/node_modules/#graphql-codegen/visitor-plugin-common
npm ERR! #graphql-codegen/visitor-plugin-common#"^2.5.1" from amplify-codegen-appsync-model-plugin#1.24.4
npm ERR! node_modules/#aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin
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.
run npm install -g npm#latest
and after that try installing amplify-cli again.

Categories

Resources