Devendra mulewa
Devendra mulewa

Reputation: 51

error in creating new angular project error

I want to create a new angular project I used ng new hello-world as project start building it get stuck in | Installing packages... and throw warning that

Installing packages...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]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

npm WARN deprecated [email protected]: this library is no longer supported

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 '.../chai":"^3.4.34","@ty'

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Devendra Mulewa\AppData\Roaming\npm-
cache\_logs\2020-08-03T03_43_38_617Z-debug.log

× Package install failed, see above.
The Schematic workflow failed. See above.

Upvotes: 0

Views: 459

Answers (1)

Kaustubh Khare
Kaustubh Khare

Reputation: 3510

This solved it for me,

open cmd/terminal as admin mode.

Execute following commands,

npm cache clean --force

npm install

Upvotes: 1

Related Questions