What am I doing wrong when installing web_hosting_manager?

[Update #1] Checked out dev branch. [/Update]

OS: Arch Linux
Arch: x64

Preperation:

git clone -b dev https://github.com/maidsafe/safe_examples && cd safe_examples/web_hosting_manager && sudo pacman -S libsecret && npm i keytar

Results of npm i:

144072 verbose linkBins commander@2.9.0
...
153896 info lifecycle safe_hosting_manager@0.1.0~postinstall: safe_hosting_manager@0.1.0
153897 verbose lifecycle safe_hosting_manager@0.1.0~postinstall: unsafe-perm in lifecycle true
153898 verbose lifecycle safe_hosting_manager@0.1.0~postinstall: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/rogier/workspace/MaidSafe/safe_examples/web_hosting_manager/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
153899 verbose lifecycle safe_hosting_manager@0.1.0~postinstall: CWD: /home/rogier/workspace/MaidSafe/safe_examples/web_hosting_manager
153900 silly lifecycle safe_hosting_manager@0.1.0~postinstall: Args: [ '-c',
153900 silly lifecycle   'concurrently "install-app-deps" "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json"' ]
153901 silly lifecycle safe_hosting_manager@0.1.0~postinstall: Returned: code: 1  signal: null
153902 info lifecycle safe_hosting_manager@0.1.0~postinstall: Failed to exec postinstall script
153903 warn optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@^1.0.1 (node_modules/7zip-bin/node_modules/7zip-bin-mac):
153904 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
153905 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
153905 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
153905 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
153905 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
153906 warn optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-win):
153907 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
153908 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    win32
153908 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
153908 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
153908 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
153909 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
153910 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
153911 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
153911 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
153911 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
153911 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
153912 verbose stack Error: safe_hosting_manager@0.1.0 postinstall: `concurrently "install-app-deps" "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json"`
153912 verbose stack Exit status 1
153912 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
153912 verbose stack     at emitTwo (events.js:125:13)
153912 verbose stack     at EventEmitter.emit (events.js:213:7)
153912 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
153912 verbose stack     at emitTwo (events.js:125:13)
153912 verbose stack     at ChildProcess.emit (events.js:213:7)
153912 verbose stack     at maybeClose (internal/child_process.js:897:16)
153912 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
153913 verbose pkgid safe_hosting_manager@0.1.0
153914 verbose cwd /home/rogier/workspace/MaidSafe/safe_examples/web_hosting_manager
153915 verbose Linux 4.11.6-3-ARCH
153916 verbose argv "/usr/bin/node" "/usr/bin/npm" "i"
153917 verbose node v8.1.2
153918 verbose npm  v4.6.1
153919 error code ELIFECYCLE
153920 error errno 1
153921 error safe_hosting_manager@0.1.0 postinstall: `concurrently "install-app-deps" "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json"`
153921 error Exit status 1
153922 error Failed at the safe_hosting_manager@0.1.0 postinstall script.
153922 error This is probably not a problem with npm. There is likely additional logging output above.
153923 verbose exit [ 1, true ]

I think you are missing the step to checkout the dev branch with: git checkout dev

3 Likes

You’re right. Unfortunately, that didn’t fix my issue.

[Update]

It’s working now, after many random install commands, so I’m not exactly sure what I did to change it.
My guess is that this was necessary:

npm i -g node-gyp

This topic was automatically closed after 60 days. New replies are no longer allowed.