Reputation: 169
I install AngularJs using the command npm install -g angular-cli
and afterwards, when I was trying to create new project, I get the following error,
Cannot find module 'reflect-metadata'
What should I for resolve the error ?
Upvotes: 1
Views: 371
Reputation: 169
I had to reintall nodeJS from their website and install reflect-metadata
and portfinder
using the following commands while being as superuser,
sudo npm install -g reflect-metadata
sudo npm install -g portfinder
Afterwards, I can create new project using the command,
ng new myProject
Upvotes: 1
Reputation: 1923
Upgrade npm
by npm install -g npm
.
If problem still exists try:
npm i -g reflect-metadata
Upvotes: 0