Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

npm install not working #792

Open
Julie-S2020 opened this issue Jun 18, 2022 · 4 comments
Open

npm install not working #792

Julie-S2020 opened this issue Jun 18, 2022 · 4 comments

Comments

@Julie-S2020
Copy link

Expected Behavior

install the project dependencies
...

Actual Behavior

bash: npm: command not found

...

Steps to Reproduce the Problem

  1. Step 1.. Fork repo
  2. Step 2..clone repo
  3. Step 3..register the upstream repo
  4. create branch
  5. fetch upstream
  6. install the dependencies

Specifications

  • Browser:

screen shot- https://1drv.ms/u/s!AiGI1YX78RnQo1U9sTSiC1fH0h3W?e=pf2wk7

@Rashad-98
Copy link

Hi there, you probably don't have npm installed on your machine or you need to add it to your machine's path. Checkout this link for more details: https://radixweb.com/blog/installing-npm-and-nodejs-on-windows-and-mac

@Nahdus
Copy link

Nahdus commented Jul 7, 2022

I am using node v16.15.1
Running npm install gives following error message

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: eslint-import-resolver-babel-plugin-root-import@1.1.1
npm ERR! Found: babel-plugin-root-import@6.4.1
npm ERR! node_modules/babel-plugin-root-import
npm ERR!   dev babel-plugin-root-import@"^6.4.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer babel-plugin-root-import@"^5.1.0" from eslint-import-resolver-babel-plugin-root-import@1.1.1
npm ERR! node_modules/eslint-import-resolver-babel-plugin-root-import
npm ERR!   dev eslint-import-resolver-babel-plugin-root-import@"^1.1.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: babel-plugin-root-import@5.1.0
npm ERR! node_modules/babel-plugin-root-import
npm ERR!   peer babel-plugin-root-import@"^5.1.0" from eslint-import-resolver-babel-plugin-root-import@1.1.1
npm ERR!   node_modules/eslint-import-resolver-babel-plugin-root-import
npm ERR!     dev eslint-import-resolver-babel-plugin-root-import@"^1.1.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 C:\Users\xxx\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Local\npm-cache\_logs\2022-07-07T16_24_17_143Z-debug-0.log 

@Sayan-Maity
Copy link

just see whether you are using latest Node.js or not and try again

@lubnafathima
Copy link

@Nahdus I hope the issue is resolved by now. if not:
I got this error a while ago as well.
you might need to change a couple of docs on your PC for it
here is the link to soln:
https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc

inside that Majbah Habib's answer helped me

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

No branches or pull requests

5 participants