Skip to content

Commit

Permalink
Merge branch 'enhancement/npmrc-file' into 'master'
Browse files Browse the repository at this point in the history
Enable unsafe-perm setting in .npmrc file to execute npm lifecycle scripts when running as root

See merge request webapps/sulu-demo!107
  • Loading branch information
niklasnatter committed Apr 15, 2021
2 parents 8140793 + fd68eca commit 2449805
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/admin/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# the package.json in this folder uses a preinstall and postinstall script for symlinking the javascript code of the
# sulu/sulu package into the node_modules directory: https://github.com/sulu/sulu/blob/2.x/symlink-vendor-directory.js
# when executing npm as root (eg. inside a docker container), npm will drop permissions when executing these scripts
# and therefore the symlink cannot be created. to prevent dropping permissions, we enable the "unsafe-perm" setting
# https://docs.npmjs.com/cli/v6/using-npm/scripts#user
unsafe-perm=true

# the javascript setup in this folder is not compatible with npm 7: https://github.com/sulu/skeleton/issues/88
# to display a helpful error message if an incompatible version is used, we enable the "engine-strict" setting
engine-strict=true

0 comments on commit 2449805

Please sign in to comment.