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

Build fails with latest nodeJS version (10.0.0) #9

Closed
mtf90 opened this issue May 8, 2018 · 2 comments
Closed

Build fails with latest nodeJS version (10.0.0) #9

mtf90 opened this issue May 8, 2018 · 2 comments

Comments

@mtf90
Copy link
Member

mtf90 commented May 8, 2018

After upgrading the nodeJS version to 10.0.0, building the frontend of ALEX fails with following error message:

[INFO] --- exec-maven-plugin:1.4.0:exec (npm-build) @ alex-frontend ---

> ALEX@1.5.0-SNAPSHOT build /home/frohme/workspace/alex/frontend/src/main/javascript
> grunt

Loading "sass.js" tasks...ERROR
>> Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (64)
>> For more information on which environments are supported please see:
>> https://github.com/sass/node-sass/releases/tag/v4.5.3

Running "concat:libs" (concat) task

Running "uglify:libs" (uglify) task
>> 1 file created 2.16 MB → 611.87 kB

Running "browserify:dist" (browserify) task
Warning: Cannot find module 'browserify-ngannotate' from '/home/frohme/workspace/alex/frontend/src/main/javascript' Use --force to continue.

Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! ALEX@1.5.0-SNAPSHOT build: `grunt`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the ALEX@1.5.0-SNAPSHOT build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
abainczyk added a commit that referenced this issue May 8, 2018
@abainczyk
Copy link
Collaborator

The issue was that the grunt-sass library has not been updated to the latest version of node-sass yet, which supports node.js v10 since v4.9.0. I removed grunt-sass in favor of node-sass and it should be fixed now.

Make sure you update the NPM to v6. Clear the node_modules directory and the NPM cache and install the dependencies again:

rm -rf node_modules
npm cache clean --force
npm install

@mtf90
Copy link
Member Author

mtf90 commented May 8, 2018

Thanks for the quick reply and fix. Works like a charm

@mtf90 mtf90 closed this as completed May 8, 2018
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