Skip to content

Update build process for NodeJS 1.x in the future? #85

Open
@chron0

Description

@chron0

With too fresh nodejs our development setup process doesn't work. Here is a trace what happens when trying to build the deps with nodejs 1.10.5:

/home/chrono/src/dspace_buildtest (develop) $ make deps
Building Ender... ERR! unsupported version 
ERR! unsupported version npm requires node version: 0.6 || 0.7 || 0.8
ERR! unsupported version And you have: v0.10.5
ERR! unsupported version which is not satisfactory.
ERR! unsupported version 
ERR! unsupported version Bad things will likely happen.  You have been warned.
ERR! unsupported version 

path.js:313
        throw new TypeError('Arguments to path.resolve must be strings');
              ^
TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.exports.relative (path.js:370:20)
    at installOne_ (/home/chrono/src/dspace_buildtest/node_modules/ender/node_modules/npm/lib/install.js:667:26)
    at installOne (/home/chrono/src/dspace_buildtest/node_modules/ender/node_modules/npm/lib/install.js:599:3)
    at /home/chrono/src/dspace_buildtest/node_modules/ender/node_modules/npm/lib/install.js:486:9
    at /home/chrono/src/dspace_buildtest/node_modules/ender/node_modules/npm/node_modules/slide/lib/async-map.js:54:35
    at Array.forEach (native)
    at /home/chrono/src/dspace_buildtest/node_modules/ender/node_modules/npm/node_modules/slide/lib/async-map.js:54:11
    at Array.forEach (native)
    at asyncMap (/home/chrono/src/dspace_buildtest/node_modules/ender/node_modules/npm/node_modules/slide/lib/async-map.js:53:8)
make: *** [ender] Error 8

Same test with 0.8.23:

/home/chrono/src/dspace_buildtest (develop) $ make deps
Building Ender... [OK]
Building local deps... [OK]
Building AMD Deps... [OK]
Assembling JS components... [OK]

So, for now, if anyone is having issues setting up the dev environment please make sure to got with NodeJS 0.8.x at the max.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions