serve

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

坚强是说给别人听的谎言 提交于 2019-12-03 12:17:23
I have cloned an angular 4 project from git. When I go to the root folder of the project and did ng serve. I am getting following error. node_modules appears empty, you may need to run npm install how can I fix the above error. Run npm install from the root of the project. If you're on a mac then you may want to run sudo npm install in case some of the package installations require elevated permissions. If it has submodules then leave a comment below and I'll update this answer to include how to deal with those. No use in confusing this answer with that unless you hit it. Open the directory