Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install PM2 on OSX #31

Closed
kisPocok opened this issue Jun 27, 2013 · 1 comment
Closed

Can't install PM2 on OSX #31

kisPocok opened this issue Jun 27, 2013 · 1 comment

Comments

@kisPocok
Copy link

$ sudo npm install pm2

pm http GET https://registry.npmjs.org/pm2
npm http 304 https://registry.npmjs.org/pm2
npm http GET https://registry.npmjs.org/commander/1.1.0
npm http GET https://registry.npmjs.org/cli-table/0.2.0
npm http GET https://registry.npmjs.org/usage/0.3.6
npm http GET https://registry.npmjs.org/axon-rpc/0.0.2
npm http GET https://registry.npmjs.org/watch/0.7.0
npm http GET https://registry.npmjs.org/axon/0.6.1
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/commander/1.1.0
npm http 304 https://registry.npmjs.org/watch/0.7.0
npm http 304 https://registry.npmjs.org/cli-table/0.2.0
npm http 304 https://registry.npmjs.org/usage/0.3.6
npm http 304 https://registry.npmjs.org/axon-rpc/0.0.2
npm http 304 https://registry.npmjs.org/axon/0.6.1
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/commander/1.0.5
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/colors/0.3.0
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/configurable/0.0.1
npm http GET https://registry.npmjs.org/escape-regexp/0.0.1
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/commander/1.0.5
npm http 304 https://registry.npmjs.org/colors/0.3.0
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/bindings

> usage@0.3.6 install /path/to/dev/node_modules/pm2/node_modules/usage
> node-gyp rebuild

npm http GET https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/configurable/0.0.1
npm http 304 https://registry.npmjs.org/escape-regexp/0.0.1
  CXX(target) Release/obj.target/sysinfo/src/binding.o
  CXX(target) Release/obj.target/sysinfo/src/mac.o
In file included from ../src/mac.cpp:7:
In file included from ../src/mac.h:6:
In file included from /Users/Me/.node-gyp/0.8.19/src/node.h:61:
In file included from /Users/Me/.node-gyp/0.8.19/deps/uv/include/uv.h:61:
In file included from /Users/Me/.node-gyp/0.8.19/deps/uv/include/uv-private/uv-unix.h:27:
/Users/Me/.node-gyp/0.8.19/deps/uv/include/uv-private/ev.h:229:3: error: expected '}'
  EV_ERROR    = (-2147483647 - 1) /* sent when an error occurs */
  ^
/usr/include/sys/event.h:144:18: note: expanded from macro 'EV_ERROR'
#define EV_ERROR        0x4000          /* error, data contains errno */
                        ^
/Users/Me/.node-gyp/0.8.19/deps/uv/include/uv-private/ev.h:205:6: note: to match this '{'
enum {
     ^
1 error generated.
make: *** [Release/obj.target/sysinfo/src/mac.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /path/to/dev/node_modules/pm2/node_modules/usage
gyp ERR! node -v v0.8.19
gyp ERR! node-gyp -v v0.8.2
gyp ERR! not ok
npm ERR! usage@0.3.6 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the usage@0.3.6 install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls usage
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "pm2"
npm ERR! cwd /path/to/dev
npm ERR! node -v v0.8.19
npm ERR! npm -v 1.1.71
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/keypress
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /path/to/dev/npm-debug.log
npm ERR! not ok code 0

node version v0.8.19

@Unitech
Copy link
Owner

Unitech commented Jun 27, 2013

downgrading node-usage to 0.3.4 without mac support for termcap monitoring

Updating pm2 procedure (and keeping processes alive) :
https://github.com/Unitech/pm2#updating-pm2-procedure-and-keeping-processes-alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants