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

python 2 required for yarn install 🙁 #29

Open
llaenowyd opened this issue Jun 4, 2021 · 3 comments
Open

python 2 required for yarn install 🙁 #29

llaenowyd opened this issue Jun 4, 2021 · 3 comments

Comments

@llaenowyd
Copy link

First thanks for the great Udemy course, really enjoying it and learning a lot.

Second, I made a solution for myself and happy to share it, if it's of any use, I'll give some details below.

error D:\src\task-management-frontend\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\src\task-management-frontend\node_modules\node-sass
Output:
Building: d:\bin\nodejs\node.exe D:\src\task-management-frontend\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'd:\\bin\\nodejs\\node.exe',
gyp verb cli   'D:\\src\\task-management-frontend\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2

I think python-2 is too far gone, it comes by default on OSX so maybe people never notice, but I didn't want to install such a big, questionable dependency to run this example.

Anyhow, since I do frontends at my day job I didn't feel it was anyone else's problem to solve for me - so here is my solution.

It follows your code as much as I could manage while working quickly and using the NextJS platform/generator. So it may be interesting since you can compare many components side-by-side. Please feel free to use it in any way you want, if you want.

Thanks again for creating the course!

@llaenowyd llaenowyd changed the title python 2 required for npm install 🙁 python 2 required for yarn install 🙁 Jun 4, 2021
@trevorsmeaton
Copy link

trevorsmeaton commented Dec 4, 2021

And thank you for taking the time to write an alternative front end! I can't get Ariel's to work, but yours worked first time

:)

@skoblenick
Copy link

If you need to work around with the existing source repos and course, update your package.json to use node-sass version 7.0.1 and consequently react-scripts to 5.0.1 as it has a dependency on sass-loader. This also has the result of reducing the number of issues reported by npm audit.

@victor-letunovsky
Copy link

I had the same issue. My node version is 20.
What helped in my case is updating versions in package.json:

  • axios to 1.7.2
  • node-sass to 9.0.0
  • react-scripts to 5.0.1

and installing one dev dependency:
npm install --save-dev "@babel/plugin-proposal-private-property-in-object"

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

4 participants