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

node-sass missing- resolved. #6

Closed
derekregent opened this issue Jul 23, 2019 · 5 comments
Closed

node-sass missing- resolved. #6

derekregent opened this issue Jul 23, 2019 · 5 comments

Comments

@derekregent
Copy link

Is something missing? I tried a couple times and still had errors making a new website using this theme since directories were missing:
Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node":

Snapshot follows- or see the attached .pdf for entire output:

daniel@daniel-ubuntu:~$ gatsby new serif https://github.com/JugglerX/gatsby-serif-theme.git
info Creating new site from git: https://github.com/JugglerX/gatsby-serif-theme.git

Cloning into 'serif'...
remote: Enumerating objects: 520, done.
remote: Total 520 (delta 0), reused 0 (delta 0), pack-reused 520
Receiving objects: 100% (520/520), 1.34 MiB | 5.68 MiB/s, done.
success Created starter directory layout
info Installing packages...

node-sass@4.11.0 install /home/daniel/serif/node_modules/node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node":

HTTP error 404 Not Found
Uploading Serif starter failed.pdf…

@derekregent derekregent changed the title Some directories are missing? node-sass missing- resolved. Jul 23, 2019
@derekregent
Copy link
Author

This problem occurred for me in Ubuntu. This should be in the readme:
1.
Install Gatsby per official tutorial
2.
Get folder for theme:
gatsby new serif https://github.com/JugglerX/gatsby-serif-theme.git

2b.
if there are errors with node-sass preinstall it and then rerun 2.:
npm install node-sass

  1. Deploy site
    cd serif
    gatsby develop

Thanks!!

@netlander
Copy link

Should be made clear in the readme.

@JugglerX
Copy link
Collaborator

Thank you all for leaving helpful hints for other people.

node-sass is listed as a dependancy in the package.json - so all you should need to do is run npm install and then run Gatsby. It does not necessarily need to be installed globally.

There are various reasons why node-sass might fail which depend on your individual environment. Often re-running npm install can fix it, or as you have suggested installing it globally might also resolve the issue.

There is no reason to include every installation edge case in the readme. I'm glad you have solved the problem and this issue will be helpful for others in the future

@netlander
Copy link

The installation instructions in the readme are incorrect.

@JugglerX
Copy link
Collaborator

I just tried installing it, i had to run npm run start instead of gatsby develop - but that has nothing to do with node sass... gatsby develop would probably have worked if I had it installed globally.

Honestly you couldent sound any more arrogant and entitled. If you think there is a problem try doing a PR. updating the README has to be the easiest PR you could do...

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

3 participants