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

Object #<Object> has no method 'execSync' in user-startup module #62

Closed
sawant opened this issue Apr 2, 2016 · 2 comments
Closed

Object #<Object> has no method 'execSync' in user-startup module #62

sawant opened this issue Apr 2, 2016 · 2 comments

Comments

@sawant
Copy link

sawant commented Apr 2, 2016

This error occurred when running hotel for the first time after installing it globally.

hotel start

/usr/local/lib/node_modules/hotel/node_modules/user-startup/lib/startup/darwin.js:34
  cp.execSync('launchctl load ' + file);
     ^
TypeError: Object #<Object> has no method 'execSync'
    at Object.create (/usr/local/lib/node_modules/hotel/node_modules/user-startup/lib/startup/darwin.js:34:6)
    at Object.start (/usr/local/lib/node_modules/hotel/lib/cli/daemon.js:22:11)
    at module.exports (/usr/local/lib/node_modules/hotel/lib/cli/index.js:32:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/hotel/bin/index.js:2:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

The issue seems to be with user-startup module, and it looks like an old version is being used in hotel.

npm version: 1.4.21
node version: 0.10.30

@typicode
Copy link
Owner

typicode commented Apr 2, 2016

Hi @sawant,

Unfortunately, Node 0.10 is not supported by hotel. execSync was introduced in Node 0.12.
You need at least Node 0.12, but I would suggest upgrading to Node 5 which is the current stable release.

Personally I like to use https://github.com/creationix/nvm to install Node.

@sawant
Copy link
Author

sawant commented Apr 2, 2016

Aah my bad! Didn't realize that. Thank you @typicode .

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