neutron
neutron copied to clipboard
build error
I'm not sure if this is a neutron specific error, a bug in node-sass or something else. Any idea?
~/go/src/github.com/emersion/neutron # make build-client
cd public && \
npm install && \
node_modules/.bin/grunt ngconstant:dev build
npm WARN deprecated [email protected]: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
> [email protected] install /root/go/src/github.com/emersion/neutron/public/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-48_binding.node
Download complete ] - :
Binary saved to /root/go/src/github.com/emersion/neutron/public/node_modules/node-sass/vendor/linux-x64-48/binding.node
Caching binary to /root/.npm/node-sass/3.13.1/linux-x64-48_binding.node
> [email protected] install /root/go/src/github.com/emersion/neutron/public/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
[===================================-----] 89%
Received 22866K total.
Extracting tar contents (via spawned process)
Removing /root/go/src/github.com/emersion/neutron/public/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1499588103438/phantomjs-2.1.1-linux-x86_64 -> /root/go/src/github.com/emersion/neutron/public/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /root/go/src/github.com/emersion/neutron/public/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
> [email protected] postinstall /root/go/src/github.com/emersion/neutron/public/node_modules/node-sass
> node scripts/build.js
make: *** [Makefile:7: build-client] Error 1
Wow, that's rather strange. It seems that node scripts/build.js crashes. Do you have a npm-debug.log file somewhere?
No, there is no npm-debug.log file.
When I run make build-client again, I get this:
~/go/src/github.com/emersion/neutron # make build-client
cd public && \
npm install && \
node_modules/.bin/grunt ngconstant:dev build
npm WARN lifecycle protonmail-web@~postinstall: cannot run in wd %s %s (wd=%s) protonmail-web@ bower install /root/go/src/github.com/emersion/neutron/public
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Running "ngconstant:dev" (ngconstant) task
Creating module proton.config at src/app/config.js...OK
Running "clean:build" (clean) task
>> 1 path cleaned.
Running "nggettext_extract:pot" (nggettext_extract) task
Running "nggettext_compile:all" (nggettext_compile) task
Running "html2js:app" (html2js) task
Successfully converted 183 html templates to js.
Running "sass:build" (sass) task
Segmentation fault
make: *** [Makefile:7: build-client] Error 139
~/go/src/github.com/emersion/neutron #
This is one Alpine Linux 3.6 with Node v6.10.3. I think I'll try to build it on Ubuntu 16.04 and see if I'll get the same error.
This doesn't surprise me a lot. So that's a bug with node-sass. Notify me if you find something new!
I think it's phantomjs issue on Alpine Linux and I haven't found any fix for it on Alpine.
https://github.com/ariya/phantomjs/issues/14725
And there is also this issue https://github.com/sass/node-sass/issues/2031
On Ubuntu 17.04 (nodejs 4.7.2), now with different errors.
~/go/src/github.com/emersion/neutron# make build-client
cd public && \
npm install && \
node_modules/.bin/grunt ngconstant:dev build
npm WARN deprecated [email protected]: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
> [email protected] install /root/go/src/github.com/emersion/neutron/public/node_modules/node-sass
> node scripts/install.js
Makefile:7: recipe for target 'build-client' failed
make: *** [build-client] Error 1
~/go/src/github.com/emersion/neutron# make build-client
cd public && \
npm install && \
node_modules/.bin/grunt ngconstant:dev build
npm WARN lifecycle protonmail-web@~postinstall: cannot run in wd %s %s (wd=%s) protonmail-web@ bower install /root/go/src/github.com/emersion/neutron/public
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
Loading "sass.js" tasks...ERROR
>> Error: ENOENT: no such file or directory, scandir '/root/go/src/github.com/emersion/neutron/public/node_modules/node-sass/vendor'
Running "ngconstant:dev" (ngconstant) task
Creating module proton.config at src/app/config.js...OK
Running "clean:build" (clean) task
>> 0 paths cleaned.
Running "nggettext_extract:pot" (nggettext_extract) task
Running "nggettext_compile:all" (nggettext_compile) task
Running "html2js:app" (html2js) task
Successfully converted 183 html templates to js.
Running "sass:build" (sass) task
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
on line 1 of src/sass/_colors.scss
from line 12 of src/sass/app.scss
Use --trace for backtrace.
Warning: Exited with error code 65 Use --force to continue.
Aborted due to warnings.
Makefile:7: recipe for target 'build-client' failed
make: *** [build-client] Error 6
I get the same error with https://github.com/ProtonMail/WebClient/tree/dbe68b871a63a4d67849f3181bef823b20e3c0ba
Loading "sass.js" tasks...ERROR
>> Error: ENOENT: no such file or directory, scandir '/home/ubuntu/WebClient/node_modules/node-sass/vendor'
[...]
Running "sass:build" (sass) task
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
on line 1 of src/sass/_colors.scss
from line 12 of src/sass/app.scss
Use --trace for backtrace.
Warning: Exited with error code 65 Use --force to continue.
Aborted due to warnings.
This time on Ubuntu 17.04 with nodejs v6.11.0
see also https://github.com/ProtonMail/WebClient/issues/43#issuecomment-315069434