wet-boew / generator-wet-boew-theme

Yo generator for WET theme development
Other
4 stars 10 forks source link

"yo wet-boew-theme" does not work on Node 4, 6, and 7 #35

Open mmikitka opened 7 years ago

mmikitka commented 7 years ago

This seems to be a common issue.

Please, update the build configuration files/scripts and the Getting Started page so that the installation process is automatic. I think this is in your best interest: consider the number of people that will abandon a project after encountering failure during installation.

  1. Create Dockerfile
    
    FROM node:6

RUN npm install -g \ grunt-cli \ yo \ bower \ generator-wet-boew-theme \ && npm cache clean


2. docker build -t wet-custom-theme-node6 .
3. docker run -it --rm -u node wet-custom-theme-node6 /bin/bash
4. yo wet-boew-theme (accept defaults)

# FROM node:4
npm ERR! Linux 4.1.37-gentoo
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.8.3
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE

npm ERR! node-sass@0.9.3 install: `node build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@0.9.3 install script 'node build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm info preuninstall node-sass@0.9.3
npm info uninstall node-sass@0.9.3
npm info postuninstall node-sass@0.9.3
npm info preuninstall grunt-sass@0.14.2
npm info uninstall grunt-sass@0.14.2
npm info postuninstall grunt-sass@0.14.2

npm ERR! Please include the following file with any support request:
npm ERR!     /home/node/npm-debug.log

# FROM node:6
npm WARN @4.0.21 No description
npm WARN @4.0.21 No repository field.
npm ERR! Linux 4.1.37-gentoo
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! node-sass@0.9.3 install: `node build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@0.9.3 install script 'node build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/node/npm-debug.log

# FROM node:7
npm WARN @4.0.21 No description
npm WARN @4.0.21 No repository field.
npm ERR! Linux 4.1.37-gentoo
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! node-sass@0.9.3 install: `node build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@0.9.3 install script 'node build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/node/.npm/_logs/2017-05-17T15_48_28_630Z-debug.log
LaurentGoderre commented 7 years ago

We need to update this project yes.

LaurentGoderre commented 7 years ago

BTW, there soon will be a dedicated docker image for building. There is already one but it's not in the hub yet.

deyaeddin commented 6 years ago

Any update on the docker image?

LaurentGoderre commented 6 years ago

Actually yes! WET core and themes are building using the new Docker image. We haven't updated this repo yet.

deyaeddin commented 6 years ago

That's a good new, Have you published this image somewhere? I can't find it on docker hub?

LaurentGoderre commented 6 years ago

Here it is! https://hub.docker.com/r/wetboew/wet-boew-build/ That alone doesnt fix this trepo though. The repo needs to be updated to use this image.