Shashank Prasad
Shashank Prasad

Reputation: 494

Can't create a new angular project

Tried creating a new angular Project using,

ng new Project

All the files are created, just the node modules folder isn't created and it ends with this message

⠧ Installing packages...npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! Unexpected end of JSON input while parsing near '...1.0.30000656","del-cl'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/shashank/.npm/_logs/2020-08-18T13_48_27_002Z-debug.log
✖ Package install failed, see above.

As suggested I tried,

npm cache clean --force

and

npm install

The issue still stays...

Upvotes: 2

Views: 4293

Answers (2)

Rodolfo Spier
Rodolfo Spier

Reputation: 188

It would require further information to proceed troubleshooting, but what you can try to do is:

  1. Delete manually directory npm and npm-cache in ../AppData/Roaming
  2. Run in your terminal npm cache clean --force
  3. Install your package with npm install -g @angular/cli

Upvotes: 3

EurekA
EurekA

Reputation: 62

Ensure the console is opened with admin rights

Upvotes: 1

Related Questions