瀏覽代碼

Try to fix Snap. Part 3: Added --unsafe-perm to npm install.

Thanks to xet7 !

Related https://github.com/wekan/wekan/issues/4505#issuecomment-1135101672
Lauri Ojansivu 3 年之前
父節點
當前提交
ea66eca60d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      snapcraft.yaml

+ 2 - 2
snapcraft.yaml

@@ -115,14 +115,14 @@ parts:
             rm install_meteor.sh
             rm -rf .build
             chmod u+w *.json
-            npm install
+            npm install --unsafe-perm
             meteor build .build --directory --allow-superuser
             # Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc.
             rm -rf .build/bundle/programs/web.browser.legacy
             # Change to directory .build/bundle/programs/server
             cd .build/bundle/programs/server
             chmod u+w *.json
-            npm install
+            npm install --unsafe-perm
             cd node_modules/fibers
             node build.js
             cd ../../../../../..