Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

build error #42

Open
streaps opened this issue Jul 9, 2017 · 7 comments
Open

build error #42

streaps opened this issue Jul 9, 2017 · 7 comments

Comments

@streaps
Copy link

streaps commented Jul 9, 2017

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 bower@1.8.0: ..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 minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: 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 node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN prefer global forever@0.14.2 should be installed with -g
npm WARN prefer global node-gyp@3.6.2 should be installed with -g

> node-sass@3.13.1 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

> phantomjs-prebuilt@2.1.14 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

> node-sass@3.13.1 postinstall /root/go/src/github.com/emersion/neutron/public/node_modules/node-sass
> node scripts/build.js



make: *** [Makefile:7: build-client] Error 1
@emersion
Copy link
Owner

Wow, that's rather strange. It seems that node scripts/build.js crashes. Do you have a npm-debug.log file somewhere?

@streaps
Copy link
Author

streaps commented Jul 10, 2017

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 fsevents@1.1.2: 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.

@emersion
Copy link
Owner

This doesn't surprise me a lot. So that's a bug with node-sass. Notify me if you find something new!

@streaps
Copy link
Author

streaps commented Jul 10, 2017

I think it's phantomjs issue on Alpine Linux and I haven't found any fix for it on Alpine.

ariya/phantomjs#14725

And there is also this issue sass/node-sass#2031

@streaps
Copy link
Author

streaps commented Jul 10, 2017

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 bower@1.8.0: ..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 minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: 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 node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN prefer global forever@0.14.2 should be installed with -g
npm WARN prefer global node-gyp@3.6.2 should be installed with -g

> node-sass@3.13.1 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: fsevents@1.1.2
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

@streaps
Copy link
Author

streaps commented Jul 10, 2017

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

@streaps
Copy link
Author

streaps commented Jul 13, 2017

see also ProtonMail/WebClients#43 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants