Closed
Description
🐛 Bug Report
tslint-to-eslint-config
version: 2.0.0-beta5 (from the latest release https://github.com/angular-eslint/angular-eslint/blob/69303fa600e471abe5e719216179b1bdbb9662da/packages/schematics/package.json)- ESLint version: ^7.6.0 (from the latest release https://github.com/angular-eslint/angular-eslint/blob/69303fa600e471abe5e719216179b1bdbb9662da/packages/schematics/package.json)
- Node version: 14.15.1
Actual Behavior
ng add @angular-eslint/schematics@latest
fails during installing packages for tooling via npm phase.
Expected Behavior
ng add @angular-eslint/schematics@latest
should install all the relevant packages for migrating an Angular CLI project from Codelyzer and TSLint.
Reproduction
- Go to an Angular CLI project folder in a terminal.
- Run
ng add @angular-eslint/schematics@latest
. - Wait before it fails with an error:
$ ng add @angular-eslint/schematics@latest
Installing packages for tooling via npm.
An unhandled exception occurred: npm ERR! code E404
npm ERR! 404 Not Found - GET http://my-local-sinopia-npm-registry/coffeescript/-/coffeescript-1.12.8.tgz
npm ERR! 404
npm ERR! 404 'coffeescript@^1.10.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'cson-parser'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
Apparently the error occurs because of cson-parser
, which has coffeescript
as a dependency, which I mentioned at #728 (comment)
Even the latest cson-parser
uses "coffeescript": "^1.12.7"
, which results in attempt to install non-existent coffeescript@1.12.8
. The problem has been earlier discussed in other repositories such as npm/registry-issue-archive#248
Environment
- Windows 10 Enterprise.
- Cygwin.
- Corporate Sinopia npm registry.