From 90399bfc9f5c4179391911a6b9c083100b0f9521 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 9 May 2017 18:22:31 +0200 Subject: [PATCH] Fix npm install failing due to access permissions --- .ebextensions/00_create_postdeploy_script.config | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .ebextensions/00_create_postdeploy_script.config diff --git a/.ebextensions/00_create_postdeploy_script.config b/.ebextensions/00_create_postdeploy_script.config new file mode 100644 index 0000000..e152ad2 --- /dev/null +++ b/.ebextensions/00_create_postdeploy_script.config @@ -0,0 +1,8 @@ +files: + "/opt/elasticbeanstalk/hooks/appdeploy/post/99_fix_node_permissions.sh": + mode: "000755" + owner: root + group: root + content: | + #!/usr/bin/env bash + chown -R nodejs:nodejs /tmp/.npm/_locks/ \ No newline at end of file