npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint

when i run ng new it shows

\ Installing packages...npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.

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]: 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 '...-grunt-tasks":"^4.0.0'

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

npm ERR!
C:\Users\Abitech\AppData\Roaming\npm-cache_logs\2020-06-02T16_28_06_793Z-debug.log

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

Upvotes: 3

Views: 19536

Answers (6)

Julian
Julian

Reputation: 767

(...) TSLint has been deprecated in favor of ESLint.

If npm update tslint didn't help, you can install and use eslint instead.

Url: https://www.npmjs.com/package/eslint

Upvotes: 1

Zukalover
Zukalover

Reputation: 11

Just run:

npm cache clean --force

npm install -g @angular/cli@latest

npm cache verify

npm install npm@latest -g

Then:

ng new projectName

Upvotes: 1

Mudassar Mustafai
Mudassar Mustafai

Reputation: 118

Just delete npm-cache folder in 'C:\Users\User Name \AppData\Roaming' and recreate project

Upvotes: 0

Pallavi
Pallavi

Reputation: 506

  1. npm cache clean --force
  2. npm uninstall -g @angular/cli
  3. npm install -g @angular/cli
  4. ng new projectName

This worked for me

Upvotes: 7

mostafa kazemi
mostafa kazemi

Reputation: 565

1.Run npm cache clean --force 2.Manually delete npm and npm-cache folders from AppData/Roaming folder (Win + R, Type %AppData% and enter) 3.Run Node Installer and repair 4.Reinstall npm install -g @angular/cli 5.Rerun ng new newApp Worked :)

Upvotes: 0

Sanket
Sanket

Reputation: 85

i had the exact same error so i followed these steps and then i was able to create a new project successfully

1) Run ( Win + R ) then type %AppData% , then clear the npm-cache folder , i.e delete that folder manually. 2) Then again run the command ng new project name

This worked for me :)

Upvotes: 3

Related Questions