brackets-userland / brackets-npm-registry

Extension to install other extensions with npm
MIT License
44 stars 8 forks source link

Update Error #47

Open edlau opened 7 years ago

edlau commented 7 years ago

Not entire sure which version it is supported right now or if this support nodenv.

I have: 4.7.2; 6.9.3; 7.7.2 (default) installed via homebrew + nodenv.

using node v6.3.1, npm 2.14.5
node in path version err: Error: Command failed: node --version
/bin/sh: node: command not found
, npm in path version err: Error: Command failed: npm --version
/bin/sh: npm: command not found

loading npm
executing npm install /Users/<me>/Library/Application Support/Brackets/extensions/user brackets-npm-registry
ERROR: {"cause":{"code":"ELIFECYCLE","errno":"ENOENT","syscall":"spawn","file":"sh","pkgid":"spawn-sync@1.0.15","stage":"postinstall","script":"node postinstall","pkgname":"spawn-sync"},"isOperational":true,"code":"ELIFECYCLE","errno":"ENOENT","syscall":"spawn","file":"sh","pkgid":"spawn-sync@1.0.15","stage":"postinstall","script":"node postinstall","pkgname":"spawn-sync"}
zaggino commented 7 years ago

Hi, not sure how to fix this for Homebrew, but Brackets 1.9 (https://github.com/adobe/brackets/releases) includes installing npm dependent extensions directly from Brackets registry, I suggest you try that one. What extension are you trying to install?

Alternatively, you can use the install guide here https://github.com/zaggino/brackets-npm-registry#how-to-install-brackets-npm-registry to install any extension, just replace brackets-npm-registry for whatever you need.