Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng add @angular/elements nom ERR! Failed at the document-register-element@1.14.3 postinstall script. #16133

Closed
mcleangm opened this issue Nov 9, 2019 · 1 comment · Fixed by #16143
Labels
area: @angular/cli freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Milestone

Comments

@mcleangm
Copy link

mcleangm commented Nov 9, 2019

🐞 Bug report

Command (mark with an x)

  • [ x] add

Is this a regression?

Unknown

Description

ng add @angular/elements package install failed

🔬 Minimal Reproduction

On Mac/OSX 10.14.6

🔥 Exception or Error

Installed packages for tooling via npm.
Added document-register-element as a dependency.
Added document-register-element.js polyfill to scripts
UPDATE package.json (1376 bytes)
UPDATE angular.json (3790 bytes)

document-register-element@1.14.3 postinstall /Users/gord/Developer/angular-workspace/projects/pravinkumar-dabade/angular7:8-elements/ng-elements/hello-world2/node_modules/document-register-element
lightercollective

sh: lightercollective: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! document-register-element@1.14.3 postinstall: lightercollective
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the document-register-element@1.14.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gord/.npm/_logs/2019-11-09T15_01_48_051Z-debug.log
Package install failed, see above.

🌍 Your Environment

Node: 12.13.0
Npm: 6.11.3

Angular CLI: 8.3.18
Node: 12.13.0
OS: darwin x64
Angular: 8.2.13
... animations, common, compiler, compiler-cli, core, elements
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.803.18
@angular-devkit/build-angular 0.803.18
@angular-devkit/build-optimizer 0.803.18
@angular-devkit/build-webpack 0.803.18
@angular-devkit/core 8.3.18
@angular-devkit/schematics 8.3.18
@angular/cli 8.3.18
@ngtools/webpack 8.3.18
@schematics/angular 8.3.18
@schematics/update 0.803.18
rxjs 6.4.0
typescript 3.5.3
webpack 4.39.2

Anything else relevant?
npm install @angular/elements completes without error where as ng add @angular/elements throws an error?

@alan-agius4 alan-agius4 added needs: investigation Requires some digging to determine if action is needed area: @angular/cli freq1: low Only reported by a handful of users who observe it rarely severity5: regression and removed needs: investigation Requires some digging to determine if action is needed labels Nov 11, 2019
@ngbot ngbot bot added this to the needsTriage milestone Nov 11, 2019
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Nov 11, 2019
mgechev pushed a commit that referenced this issue Nov 12, 2019
Previously we passed `--no-bin-links` because we used to install packages globally in some cases. But now this is no longer needed as we should now have permissions to generate "local" bin links even during a temp installations as these  will no longer generate bin links in the global context.

Fixes #16133
mgechev pushed a commit that referenced this issue Nov 12, 2019
Previously we passed `--no-bin-links` because we used to install packages globally in some cases. But now this is no longer needed as we should now have permissions to generate "local" bin links even during a temp installations as these  will no longer generate bin links in the global context.

Fixes #16133
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular/cli freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants