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

NodeJS upgrade issues, frequently with node-sass #128

Open
ottok opened this issue Jan 15, 2020 · 6 comments
Open

NodeJS upgrade issues, frequently with node-sass #128

ottok opened this issue Jan 15, 2020 · 6 comments

Comments

@ottok
Copy link
Contributor

ottok commented Jan 15, 2020

Note directly related to our project template, but still a common issue worth documenting.

Many have reported problems with node-sass and the latest NodeJS version. Root cause and its solution seem to be dlmanning/gulp-sass#748

Another issue seems to be stray caches. To ensure that npm or yarn installs the latest versions of everything, these tips might help:

rm -rf node_modules .cache-loader package-lock.json yarn.lock
npm cache clean -f
npm install

These might also sometimes help:

npm --depth 9999 update
npm rebuild

Note, that you might also get different results with npm install X and yarn add X in some corner cases, even though they in principle obey the same package.json

@ottok
Copy link
Contributor Author

ottok commented Jan 15, 2020

Naturally, if the package.json is fixed to some very old NodeJS libraries that don't run on NodeJS 12, then those dependencies need to be bumped.

@Kimitri
Copy link
Contributor

Kimitri commented Apr 29, 2020

As the package.json file is provided in the repository (and rightfully so), would it make sense to include a .nvmrc file (or some equivalent) as well? That would make it easier to get to a known working state with the site and get people started building stuff faster.

@ottok
Copy link
Contributor Author

ottok commented Apr 29, 2020

@Kimitri Would you like to make a suggestion in the form of a pull request?

@Kimitri
Copy link
Contributor

Kimitri commented Apr 29, 2020

@ottok Sure! That would be nice. Do you guys have any contribution guidelines that I should check out first?

@ottok
Copy link
Contributor Author

ottok commented May 26, 2020

@ottok Sure! That would be nice. Do you guys have any contribution guidelines that I should check out first?

Nothing special. Just open a PR like on any other Github project. If the solution is not a piece of code/automation, you can also make a documentation PR agains https://github.com/Seravo/docs (that is https://seravo.com/docs/).

@ottok
Copy link
Contributor Author

ottok commented May 28, 2020

Related: Occasionally people reported issues with gulp-sass wanting to build, and that was because the version we used was so old that it wasn't available as a binary from upstream anymore. Fixed via #108

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

No branches or pull requests

2 participants