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

npm install exits on node-sass installation #43

Closed
streaps opened this issue Jul 13, 2017 · 7 comments
Closed

npm install exits on node-sass installation #43

streaps opened this issue Jul 13, 2017 · 7 comments

Comments

@streaps
Copy link

streaps commented Jul 13, 2017

I tried to install and run the WebClient, but it seems some font-awesome file is missing. Is this a bug or do I need to install the font-awesome file manually?

~/WebClient# npm start

> protonmail-web@3.9.1 start /root/WebClient
> grunt watch --api=dev

Running "notify_hooks" task

Running "ngconstant:dev" (ngconstant) task
Creating module proton.config at src/app/config.js...OK

Running "clean:build" (clean) task
>> 1 path cleaned.

Running "html2js:app" (html2js) task
Successfully converted 191 html templates to js.

Running "sass:build" (sass) task
>> Error: File to import not found or unreadable: ../../vendor/components-font-awesome/scss/font-awesome
>>        Parent style sheet: /root/WebClient/src/sass/_icons.scss
>>         on line 1 of src/sass/_icons.scss
>> >> @import "../../vendor/components-font-awesome/scss/font-awesome";
>>    ^
Warning:  Use --force to continue.

Aborted due to warnings.

npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! protonmail-web@3.9.1 start: `grunt watch --api=dev`
npm ERR! Exit status 6

@streaps
Copy link
Author

streaps commented Jul 13, 2017

node_modules/.bin/bower install solved it.

Maybe this could be mentioned in README.md under Basic Installation.

@streaps
Copy link
Author

streaps commented Jul 13, 2017

npm install doesn't install node-sass correctly and stops there. What works is:

npm install
npm install node-sass
npm install
npm start

Any idea why node-sass doesn't get installed with npm install, but does with npm install node-sass?

@dhoko
Copy link
Collaborator

dhoko commented Jul 13, 2017

Hey,

idk, I cloned WebClient a few minutes ago and did a $ npm i.
No errors after the $ npm start ¯_(ツ)_/¯

  • $ node -v: v7.0.0
  • $ npm -v: v3.10.8

Did you try to clean your cache ?

Edit idem with node v6.3.1

@streaps
Copy link
Author

streaps commented Jul 13, 2017

Thanks dhoko. I still have no idea why this is happening, but it's good to know that it seems to be specific to my build environment. More trial end error...

@dhoko
Copy link
Collaborator

dhoko commented Jul 13, 2017

Did you try to clear the cache from npm and node_modules before $ npm i ?

@streaps
Copy link
Author

streaps commented Jul 13, 2017

I installed it in a fresh lxc container (Ubuntu 17.04).

@streaps streaps changed the title scss/font-awesome missing npm install exits on node-sass installation Jul 14, 2017
@streaps
Copy link
Author

streaps commented Jul 14, 2017

It works for me on a normal Ubuntu setup. I wonder if the problem was related to the LXC container. I assume it is a bug in LXC and/or node-sass.

@streaps streaps closed this as completed Jul 14, 2017
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