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

permission issue when installing angular-cli for the first time #792

Closed
danielleadams opened this issue Jun 5, 2020 · 1 comment
Closed

Comments

@danielleadams
Copy link
Contributor

It seems that installing that angular-cli 9 may run into issues when initially installing and attempting to use the Ivy compiler.

An error may look something like this:

ERROR in EACCES: permission denied, open '/tmp/build_xxx/node_modules/@angular/core/__ivy_ngcc__/fesm5/core.js'

And break the build.

The current work around is to disable the Heroku build script temporarily, so that a successful deploy is performed and node modules are cached. Then, restore the build script and deploy again.

@danielleadams
Copy link
Contributor Author

This was an npm bug in 6.11.2 (and previous versions) that surfaced as an Angular bug in builds: https://npm.community/t/6-11-2-npm-ci-installs-package-with-wrong-permissions/9720/7.

Fixed here: npm/cli#243

The fix is to update to 6.11.3 (preferably to a more secure later version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant