NodeJS 4.0 released
-
-
Hmm, tried on a fresh install, but lwip wouldn't build for me.
-
-
@chrismccoy true, as the official stable release by joyent
it's because NodeJS was forked after 0.12 to io.js 1.0, then back to Node at the 4.0 release
here's some blog about it http://anandmanisankar.com/posts/nodejs-iojs-why-the-fork/
here's a list of all the releases: https://nodejs.org/en/download/releases/
-
@yariplus said:
Hmm, tried on a fresh install, but lwip wouldn't build for me.
Most likely this would be because all native modules need to be updated for 4.0.
Quoting from a blog post:
Recent changes to V8 which are included in io.js v3 are much more profound and require not only a newer version of NAN but a breaking API change in NAN itself which requires code changes in all dependent native modules.
(NAN = Native Abstractions for Node)
Some modules are already compatible though, as the same version of NAN is used by both io.js v3 and Node.js v4 and io.js v3 has been out for a while, so module authors had some time in advance of v4 to upgrade.
-
@baris How to solve problems with mmmagic?
root@xen:/var/www# ./nodebb upgrade 1. Bringing base dependencies up to date... OK 2. Updating NodeBB data store schema. module.js:355 Module._extensions[extension](this, filename); ^ Error: Module did not self-register. at Error (native) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/var/www/node_modules/mmmagic/lib/index.js:3:13) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) Error: undefined
-
@baris I wish I could get rid of the mmmagic dependency, but all the popular plugins out there deduce mime-type via file extension, and not magic numbers, so that's not really secure enough
... and every SO question I find tells me to use mmmagic
-
Using NodeJS 4.1 and NodeBB v0.8.x builds just fine except for
[email protected]
.% node -v && npm -v v4.1.1 2.14.4
However,
[email protected]
builds without error. Would it be easy to make NodeBB depend on the later ? In case it helps here is the output once built.[email protected] node_modules/lwip āāā [email protected] āāā [email protected] āāā [email protected] ([email protected])
Once this version of
lwip
installed, NodeBB starts without problem. By the way, I love what you have done with the look and feel of the dashboard.PS : I am on FreeBSD so I use clang to compile but I do not think it matters in that case.
-
Just a cautionary note, don't try 4.x in prod yet...
https://github.com/nodejs/node/issues/3370