From 9ca26d22d0c2c9bee792e50ff203a5c18c9d556b Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 23 May 2022 23:44:16 +0300 Subject: [PATCH] Try to fix Snap. Part 4. Thanks to xet7 ! --- snapcraft.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 1ea39ddfd..b4114813e 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -93,8 +93,8 @@ parts: - build-essential - ca-certificates - apt-utils - - python2 -# - python3 +# - python2 + - python3 - g++ - capnproto - curl @@ -108,6 +108,13 @@ parts: echo "Cleaning environment first" rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules rm -rf .build + echo "Using http npm packages so speedup install process https://stackoverflow.com/questions/39760113/callback-called-more-than-once-while-running-npm-install" + echo "registry=http://registry.npmjs.org/" > ~/.npmrc + echo "Installing npm, node-gyp, node-pre-gyp, fibers" + npm -g install npm --unsafe-perm + npm -g install node-gyp --unsafe-perm + npm -g install node-pre-gyp --unsafe-perm + npm -g install fibers --unsafe-perm echo "Installing meteor" curl https://install.meteor.com/ -o install_meteor.sh chmod +x install_meteor.sh