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

Not working on Node 6.0.0 #2956

Closed
Gared opened this issue Apr 29, 2016 · 7 comments
Closed

Not working on Node 6.0.0 #2956

Gared opened this issue Apr 29, 2016 · 7 comments

Comments

@Gared
Copy link
Member

Gared commented Apr 29, 2016

When I try to start etherpad with node version 6.0.0 I get the following exception:

/home/gared/dev/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/lib/npm.js:31
    throw new Error('npm.load() required')
    ^

Error: npm.load() required
    at Object.npm.config.get (/home/gared/dev/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/lib/npm.js:31:11)
    at EventEmitter.Object.defineProperty.get [as dir] (/home/gared/dev/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/lib/npm.js:410:22)
    at Object.exports.getPackages (/home/gared/dev/etherpad-lite/node_modules/ep_etherpad-lite/static/js/pluginfw/plugins.js:106:29)
    at Object.exports.update (/home/gared/dev/etherpad-lite/node_modules/ep_etherpad-lite/static/js/pluginfw/plugins.js:83:11)
    at /home/gared/dev/etherpad-lite/src/node/server.js:66:13
    at fn (/home/gared/dev/etherpad-lite/src/node_modules/async/lib/async.js:641:34)
    at Immediate._onImmediate (/home/gared/dev/etherpad-lite/src/node_modules/async/lib/async.js:557:34)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)

@rugk
Copy link
Contributor

rugk commented May 2, 2016

I get this too, but I also get this with Node v6:

[time...] [ERROR] console - (node:8092) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[time...] [WARN] console - DirtyDB is used. This is fine for testing but not recommended for production.
[time...] [ERROR] console - (node:8092) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[time...] [ERROR] console - (node:8092) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
/home/etherpad/node_modules/ep_etherpad-lite/node_modules/npm/lib/npm.js:31
    throw new Error('npm.load() required')

Is this also caused by Node 6?

graceful-fs is quite up-to-date AFAIK:

$ npm install graceful-fs
/home/etherpad
└── graceful-fs@4.1.3 

@Gared
Copy link
Member Author

Gared commented May 5, 2016

Probably the reason is this change: nodejs/node#5950
@rugk This error appears in older versions of node.js too. The package is outdated and you were probably in the wrong directory doing the npm install (there is a src directory with a node_modules in it)

@rugk
Copy link
Contributor

rugk commented May 5, 2016

@rugk This error appears in older versions of node.js too. The package is outdated and you were probably in the wrong directory doing the npm install (there is a src directory with a node_modules in it)

Okay, anyway I could solve it with a downgrade to Node v5.

@twinshadow
Copy link

I can confirm that a downgrade to node 5.9.0 did work around this issue. To do this with homebrew on OSX 10.10.5, running brew switch node 5.9.0 and brew pin 5.9.0 should keep the workaround in place.

@Gared
Copy link
Member Author

Gared commented May 16, 2016

Etherpad is working again with Node v7 (tested with latest nightly)

@dvzrv
Copy link

dvzrv commented May 24, 2016

This seems to be resolved with nodejs>=6.2

@Treverix
Copy link

Treverix commented Jun 6, 2016

I can confirm that. I had the same error, received node 6.2.1 after a brew upgrade and now it works.

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

No branches or pull requests

5 participants