I am new to npm and node, i am learning angular.
In an angular cli project, whenever i run ng <<'keyword'>> command, i am getting below error as its unable to find global npm-modules folder.
node_modules appears empty, you may need to run
npm install
Tried following configuration but no luck, i have to run npm install in every project to overcome the problem.
export NODE_PATH=/usr/local/lib/node_modules
PATH=$PATH:/usr/local/bin/node
PATH=$PATH:/usr/local/bin/npm
Is there way that i can avoid running npm install for every project?
npm install -g @angular/cli
, and install dependencies for this project by runnpm install
in your app folder (same folder withpackage.json
file)