Ng new project isn't working
Problem
i am trying to create a new angular project , it's not working and having this output : i have node v : v13.13.0 angular v : Angular CLI: 9.1.2 npm v : '6.14.4' \ Installing packages...npm WARN deprecated tslint@6.1.1: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated fsevents@1.2.12: fsevents 1 will break on node v14+. Upgrade to fsevents 2 with massive improvements. npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm ERR! Unexpected end of JSON input while parsing near '...},"4.2.1":{"name":"@a' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\dell\AppData\Roaming\npm-cache\_logs\2020-04-22T08_41_24_031Z-debug.log × Package install failed, see above. The Schematic workflow failed. See above.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Ng new project isn't working
install latest angular cli by: `npm install -g @angular/cli@latest`
Trust Score
4 verifications
- 1
install latest angular cli by:
`npm install -g @angular/cli@latest`
Validation
Resolved in npm/cli GitHub issue #1191. Community reactions: 7 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep