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

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

Related

How can I successfully deploy firebase functions?

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

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

`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

How can I install nvm in windows?

I have tired installing nvm with cURL command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
I have installed nvm but I couldn't use nvm command:
$ nvm --version
bash: nvm: command not found
if I try to update nvm I get this,
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13527 100 13527 0 0 15441 0 --:--:-- --:--:-- --:--:-- 15441
=> nvm is already installed in /c/Users/VIJAY R/.nvm, trying to update using git
=> error: invalid path 'test/fast/Aliases/"nvm alias" should not accept aliases with slashes'
=> Compressing and cleaning up git repository
=> nvm source string already in /c/Users/VIJAY R/.bash_profile
=> bash_completion source string already in /c/Users/VIJAY R/.bash_profile
main: line 397: /c/Users/VIJAY R/.nvm/nvm.sh: No such file or directory
npm ERR! missing: #babel/code-frame#^7.0.0, required by eslint#6.7.2
npm ERR! missing: eslint-scope#^5.0.0, required by eslint#6.7.2
npm ERR! missing: eslint-visitor-keys#^1.1.0, required by eslint#6.7.2
npm ERR! missing: espree#^6.1.2, required by eslint#6.7.2
npm ERR! missing: esquery#^1.0.1, required by eslint#6.7.2
npm ERR! missing: esutils#^2.0.2, required by eslint#6.7.2
npm ERR! missing: functional-red-black-tree#^1.0.1, required by eslint#6.7.2
npm ERR! missing: ignore#^4.0.6, required by eslint#6.7.2
npm ERR! missing: import-fresh#^3.0.0, required by eslint#6.7.2
npm ERR! missing: imurmurhash#^0.1.4, required by eslint#6.7.2
npm ERR! missing: json-stable-stringify-without-jsonify#^1.0.1, required by eslint#6.7.2
npm ERR! missing: levn#^0.3.0, required by eslint#6.7.2
npm ERR! missing: natural-compare#^1.4.0, required by eslint#6.7.2
npm ERR! missing: progress#^2.0.0, required by eslint#6.7.2
npm ERR! missing: regexpp#^2.0.1, required by eslint#6.7.2
npm ERR! missing: table#^5.2.3, required by eslint#6.7.2
npm ERR! missing: text-table#^0.2.0, required by eslint#6.7.2
npm ERR! missing: v8-compile-cache#^2.0.3, required by eslint#6.7.2
npm ERR! missing: fast-deep-equal#^2.0.1, required by ajv#6.10.2
npm ERR! missing: fast-json-stable-stringify#^2.0.0, required by ajv#6.10.2
npm ERR! missing: json-schema-traverse#^0.4.1, required by ajv#6.10.2
npm ERR! missing: uri-js#^4.2.2, required by ajv#6.10.2
npm ERR! missing: esutils#^2.0.2, required by doctrine#3.0.0
npm ERR! missing: eslint-visitor-keys#^1.1.0, required by eslint-utils#1.4.3
npm ERR! missing: flatted#^2.0.0, required by flat-cache#2.0.1
npm ERR! missing: rimraf#2.6.3, required by flat-cache#2.0.1
npm ERR! missing: type-fest#^0.8.1, required by globals#12.3.0
npm ERR! missing: cli-width#^2.0.0, required by inquirer#7.0.0
npm ERR! missing: emoji-regex#^8.0.0, required by string-width#4.1.0
npm ERR! missing: deep-is#~0.1.3, required by optionator#0.8.3
npm ERR! missing: levn#~0.3.0, required by optionator#0.8.3
npm ERR! missing: prelude-ls#~1.1.2, required by optionator#0.8.3
npm ERR! missing: type-check#~0.3.2, required by optionator#0.8.3
npm ERR! missing: word-wrap#~1.2.3, required by optionator#0.8.3
npm ERR! missing: #babel/code-frame#^7.0.0, required by eslint#6.7.2
npm ERR! missing: eslint-scope#^5.0.0, required by eslint#6.7.2
npm ERR! missing: eslint-visitor-keys#^1.1.0, required by eslint#6.7.2
npm ERR! missing: espree#^6.1.2, required by eslint#6.7.2
npm ERR! missing: esquery#^1.0.1, required by eslint#6.7.2
npm ERR! missing: esutils#^2.0.2, required by eslint#6.7.2
npm ERR! missing: functional-red-black-tree#^1.0.1, required by eslint#6.7.2
npm ERR! missing: ignore#^4.0.6, required by eslint#6.7.2
npm ERR! missing: import-fresh#^3.0.0, required by eslint#6.7.2
npm ERR! missing: imurmurhash#^0.1.4, required by eslint#6.7.2
npm ERR! missing: json-stable-stringify-without-jsonify#^1.0.1, required by eslint#6.7.2
npm ERR! missing: levn#^0.3.0, required by eslint#6.7.2
npm ERR! missing: natural-compare#^1.4.0, required by eslint#6.7.2
npm ERR! missing: progress#^2.0.0, required by eslint#6.7.2
npm ERR! missing: regexpp#^2.0.1, required by eslint#6.7.2
npm ERR! missing: table#^5.2.3, required by eslint#6.7.2
npm ERR! missing: text-table#^0.2.0, required by eslint#6.7.2
npm ERR! missing: v8-compile-cache#^2.0.3, required by eslint#6.7.2
npm ERR! missing: fast-deep-equal#^2.0.1, required by ajv#6.10.2
npm ERR! missing: fast-json-stable-stringify#^2.0.0, required by ajv#6.10.2
npm ERR! missing: json-schema-traverse#^0.4.1, required by ajv#6.10.2
npm ERR! missing: uri-js#^4.2.2, required by ajv#6.10.2
npm ERR! missing: esutils#^2.0.2, required by doctrine#3.0.0
npm ERR! missing: eslint-visitor-keys#^1.1.0, required by eslint-utils#1.4.3
npm ERR! missing: mimic-fn#^2.1.0, required by onetime#5.1.0
npm ERR! missing: emoji-regex#^8.0.0, required by string-width#4.1.0
npm ERR! missing: flatted#^2.0.0, required by flat-cache#2.0.1
npm ERR! missing: rimraf#2.6.3, required by flat-cache#2.0.1
npm ERR! missing: type-fest#^0.8.1, required by globals#12.3.0
npm ERR! missing: deep-is#~0.1.3, required by optionator#0.8.3
npm ERR! missing: levn#~0.3.0, required by optionator#0.8.3
npm ERR! missing: prelude-ls#~1.1.2, required by optionator#0.8.3
npm ERR! missing: type-check#~0.3.2, required by optionator#0.8.3
npm ERR! missing: word-wrap#~1.2.3, required by optionator#0.8.3
npm ERR! missing: chai#^4.1.2, required by nock#9.6.1
npm ERR! missing: deep-equal#^1.0.0, required by nock#9.6.1
npm ERR! missing: json-stringify-safe#^5.0.1, required by nock#9.6.1
npm ERR! missing: propagate#^1.0.0, required by nock#9.6.1
npm ERR! missing: qs#^6.5.1, required by nock#9.6.1
=> You currently have modules installed globally with `npm`. These will no
=> longer be linked to the active version of Node when you install a new node
=> with `nvm`; and they may (depending on how you construct your `$PATH`)
=> override the binaries of modules installed with `nvm`:
C:\Users\VIJAY R\AppData\Roaming\npm
+-- #angular/cli#10.1.6
+-- heroku#7.46.0
`-- nodemon#2.0.4
=> If you wish to uninstall them at a later point (or re-install them under your
=> `nvm` Nodes), you can remove them from the system Node as follows:
$ nvm use system
$ npm uninstall -g a_module
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
From the important notes section of the nvm doc:
Note: nvm does not support Windows (see #284), but may work in WSL (Windows Subsystem for Linux) depending on the version of WSL. For Windows, two alternatives exist, which are neither supported nor developed by us:
nvm-windows
nodist
You may have better luck trying nvm-windows or nodist.

Resources