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

Unable to build web application due to gulp.js error #97

Open
katheris opened this issue Nov 2, 2016 · 2 comments
Open

Unable to build web application due to gulp.js error #97

katheris opened this issue Nov 2, 2016 · 2 comments
Labels
Milestone

Comments

@katheris
Copy link
Contributor

katheris commented Nov 2, 2016

Building the web application I get an unsupported environment error in both Windows and ubuntu:

in ubuntu:
[INFO] Running 'gulp.js build' in /home/kate/git/katheris/microprofile-conference/web-application/src/main/static
[ERROR] /home/kate/git/katheris/microprofile-conference/web-application/src/main/static/node_modules/node-sass/lib/index.js:13
[ERROR] throw new Error(errors.unsupportedEnvironment());
[ERROR] ^
[ERROR]
[ERROR] Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (51)
[ERROR] For more information on which environments are supported please see:
[ERROR] https://github.com/sass/node-sass/releases/tag/v3.10.1
[ERROR] at Object. (/home/kate/git/katheris/microprofile-conference/web-application/src/main/static/node_modules/node-sass/lib/index.js:13:11)
[ERROR] at Module._compile (module.js:573:32)
[ERROR] at Object.Module._extensions..js (module.js:582:10)
[ERROR] at Module.load (module.js:490:32)
[ERROR] at tryModuleLoad (module.js:449:12)
[ERROR] at Function.Module._load (module.js:441:3)
[ERROR] at Module.require (module.js:500:17)
[ERROR] at require (internal/module.js:20:19)
[ERROR] at Object. (/home/kate/git/katheris/microprofile-conference/web-application/src/main/static/node_modules/gulp-sass/index.js:187:21)
[ERROR] at Module._compile (module.js:573:32)

in windows:
[INFO] --- frontend-maven-plugin:1.0:gulp (gulp-build) @ web-application ---
[INFO] Running 'gulp.js build' in C:\Users\IBM_ADMIN\git\katheris\microprofile-conference\web-application\src\main\static
[ERROR] C:\Users\IBM_ADMIN\git\katheris\microprofile-conference\web-application\src\main\static\node_modules\node-sass\lib\index.js:13
[ERROR] throw new Error(errors.unsupportedEnvironment());
[ERROR] ^
[ERROR]
[ERROR] Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (51)
[ERROR] For more information on which environments are supported please see:
[ERROR] https://github.com/sass/node-sass/releases/tag/v3.10.0
[ERROR] at Object. (C:\Users\IBM_ADMIN\git\katheris\microprofile-conference\web-application\src\main\static\node_modules\node-sass\lib\index.js:13:11)
[ERROR] at Module._compile (module.js:573:32)
[ERROR] at Object.Module._extensions..js (module.js:582:10)
[ERROR] at Module.load (module.js:490:32)
[ERROR] at tryModuleLoad (module.js:449:12)
[ERROR] at Function.Module._load (module.js:441:3)
[ERROR] at Module.require (module.js:500:17)
[ERROR] at require (internal/module.js:20:19)
[ERROR] at Object. (C:\Users\IBM_ADMIN\git\katheris\microprofile-conference\web-application\src\main\static\node_modules\gulp-sass\index.js:187:21)
[ERROR] at Module._compile (module.js:573:32)

@katheris katheris added the bug label Nov 2, 2016
@karianna karianna added this to the 1.0.1 milestone Nov 3, 2016
@iainduncani
Copy link
Contributor

node-sass v3.10.0 isn't supported on Windows with node 7:

https://github.com/sass/node-sass/releases/tag/v3.10.0

I got past this error by adding this to the dependencies in web-application\src\main\static\package.json:

"node-sass": "^3.11.1"

However, I then just get a further error trying to load the primeng module added by commit 9583eb so I don't know if the fix for node-sass is definitely the right one.

@iainduncani
Copy link
Contributor

@katheris I think this is because the mvn clean doesn't clean out the old node_modules directory. I ran this on a fresh clone in a VM and it worked so I went back and tidied out my old node_modules and it now works on my Windows machine as well. I will add something to clean out the node_modules on a mvn clean so that we don't see this on future version updates...

iainduncani added a commit to iainduncani/microprofile-conference that referenced this issue Nov 4, 2016
To fix issue eclipse#97 mvn clean now deletes node_modules so that when there is
a version update it will refresh all the node modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants