0

I installed angular 6 on my system and was trying to start a new project using command ng new project_1, but it was returning this error "cannot find module uri-js". Tried using angular 7 but same error comes. Anyone can give a solution please?

Sree
  • 1

3 Answers3

0

Did you try install it using npm? npm install uri-js

Bernhard
  • 1,227
  • 8
  • 18
0

Reinstalling the package might help,

npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli
If you are using npm>5 you may need to use cache verify instead. (npm cache verify)

use sudo before above commands if you are using Linux eg (sudo npm uninstall -g @angular/cli)

Akshay Rajput
  • 1,495
  • 5
  • 15
0

Angular app name rules, there can only be a letter after '-', like project-one. you can not use project-1 as the project name.

After that u have to use this cli command:-

    npm uninstall -g @angular/cli
    npm cache clean or npm cache clean -f
    npm install -g @angular/cli
    ng new project-one
Abhishek
  • 1,469
  • 1
  • 12
  • 20