Skip to content

ng add @angular-eslint/schematics@latest fails trying to install coffeescript@1.12.8 #839

Closed
@skovalyov

Description

@skovalyov

🐛 Bug Report

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

  1. Go to an Angular CLI project folder in a terminal.
  2. Run ng add @angular-eslint/schematics@latest.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers; welcome aboard!status: externalNot related to this repository.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions