Skip to content

Conversation

@orf
Copy link

@orf orf commented Mar 21, 2020

Description of changes:

NPM will not execute any script hooks if it is running as root, which is common in docker environments (i.e sam build --use-container). The postinstall script hook is commonly used by many libraries (especially ones involving native bindings), and it is highly confusing as to why hooks are not run when executing sam build --use-container versus sam build locally.

Adding --unsafe-perm enables this.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

orf added 2 commits March 21, 2020 11:27
NPM will not execute any script hooks if it is running as root, which is common in docker environments. Adding --unsafe-perm enables this.
Co-Authored-By: Jacob Fuss <32497805+jfuss@users.noreply.github.com>
@sriram-mv
Copy link
Contributor

closing since #163 is merged.

@sriram-mv sriram-mv closed this May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants