2

I have cloned a project from GitHub and started a Git Bash from the root folder. I tried to start the project by typing ember serve, but I got the following error:

node_modules appears empty, you may need to run `npm install`

In the Git Bash, I also typed npm install, but nothing happens.

I also read this post but it didn't help me.

Xiddoc
  • 3,369
  • 3
  • 11
  • 37
Jammi
  • 21
  • 3
  • Assuming your link for "nothing happens" is relevant to your situation, did you try following the directions and running `npm audit fix`? – Patrick Roberts Sep 13 '18 at 02:18
  • @PatrickRoberts Yeah , I tried `npm audit fix` but it says you have to fix it manually . – Jammi Sep 13 '18 at 02:24
  • it means the project is severely outdated. Post an issue on their github repository and copy the output from `npm audit` so they can update their dependencies and get the project working again. The fact that `npm audit fix` requires manual intervention means that the dependencies which have vulnerabilities can only be updated with non-backwards-compatible changes. – Patrick Roberts Sep 13 '18 at 02:27

1 Answers1

2

You must open the Command Prompt in the directory that contains the package.json file. Then, run npm install in the Command Prompt.

Xiddoc
  • 3,369
  • 3
  • 11
  • 37
every Bit
  • 399
  • 1
  • 4
  • 18