The Wayback Machine - https://web.archive.org/web/20260424043203/https://github.com/angular/angular-cli/issues/16492
Skip to content

[9.0.0-rc.7] Package install failed #16492

@olilutz

Description

@olilutz

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Works in lastest v8 (ubuntu/windows) and in v9 rc in windows

Description

I installed @angular/cli@next in Ubuntu 19.10 and with every ng command that does package installation it fails with:
'Package install failed, see above. The Schematic workflow failed. See above.'

🔬 Minimal Reproduction

Install nodejs 12 from snap
Install sudo npm i -g @angular/cli@next also required --scripts-prepend-node-path despite I set this true globally before.
Make a new angular project with ng new. Or ng g app or lib or ng add package or ng update package.
It always fails on package installation.

🔥 Exception or Error


ng g app new-app
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? SCSS   [https://sass-lang.com/documentation/syntax#scss]
CREATE projects/new-app/browserslist (429 bytes)
CREATE projects/new-app/karma.conf.js (1023 bytes)
CREATE projects/new-app/tsconfig.app.json (218 bytes)
CREATE projects/new-app/tsconfig.spec.json (278 bytes)
CREATE projects/new-app/tslint.json (247 bytes)
CREATE projects/new-app/src/favicon.ico (948 bytes)
CREATE projects/new-app/src/index.html (292 bytes)
CREATE projects/new-app/src/main.ts (372 bytes)
CREATE projects/new-app/src/polyfills.ts (2838 bytes)
CREATE projects/new-app/src/styles.scss (80 bytes)
CREATE projects/new-app/src/test.ts (642 bytes)
CREATE projects/new-app/src/assets/.gitkeep (0 bytes)
CREATE projects/new-app/src/environments/environment.prod.ts (51 bytes)
CREATE projects/new-app/src/environments/environment.ts (662 bytes)
CREATE projects/new-app/src/app/app-routing.module.ts (246 bytes)
CREATE projects/new-app/src/app/app.module.ts (393 bytes)
CREATE projects/new-app/src/app/app.component.scss (0 bytes)
CREATE projects/new-app/src/app/app.component.html (25705 bytes)
CREATE projects/new-app/src/app/app.component.spec.ts (1062 bytes)
CREATE projects/new-app/src/app/app.component.ts (212 bytes)
CREATE projects/new-app/e2e/protractor.conf.js (808 bytes)
CREATE projects/new-app/e2e/tsconfig.json (226 bytes)
CREATE projects/new-app/e2e/src/app.e2e-spec.ts (640 bytes)
CREATE projects/new-app/e2e/src/app.po.ts (262 bytes)
UPDATE angular.json (7532 bytes)
✖ Package install failed, see above.
The Schematic workflow failed. See above.


🌍 Your Environment

Ubuntu 19.10 wayland session


Angular CLI: 9.0.0-rc.7
Node: 12.14.0
OS: linux x64

Angular: 9.0.0-rc.7
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.7
@angular-devkit/build-angular     0.900.0-rc.7
@angular-devkit/build-optimizer   0.900.0-rc.7
@angular-devkit/build-webpack     0.900.0-rc.7
@angular-devkit/core              9.0.0-rc.7
@angular-devkit/schematics        9.0.0-rc.7
@ngtools/webpack                  9.0.0-rc.7
@schematics/angular               9.0.0-rc.7
@schematics/update                0.900.0-rc.7
rxjs                              6.5.3
typescript                        3.6.4
webpack                           4.41.2

Anything else relevant?
I think the problem occurs only with nodejs as snap. The cli install was the only one that needed
--scripts-prepend-node-path explicitly set as option, other packages worked out of the box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions