btholt / complete-intro-to-containers

The Complete Intro to Containers! As taught on Frontend Masters.
https://frontendmasters.com/courses/complete-intro-containers/
Other
941 stars 186 forks source link

refactor: version 8 (latest) of node-sass does not work with the used Docker container #71

Closed inovux closed 1 year ago

inovux commented 1 year ago

I was following the class and noticed that node-sass v8 was released recently. This will require a higher python version inside the node:12-stretch container because of node-gyp, so it wont be able to build according to what is been told in the class. Installing a specific version for node-sass @7.0.3 fixes the issue.

#8 14.93 gyp verb find Python - executing "python3" to get executable path
#8 14.96 gyp verb find Python - executable path is "/usr/bin/python3"
#8 14.96 gyp verb find Python - executing "/usr/bin/python3" to get version
#8 14.97 gyp verb find Python - version is "3.5.3"
#8 14.97 gyp verb find Python - version is 3.5.3 - should be >=3.6.0
#8 14.97 gyp verb find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
#8 14.97 gyp verb find Python checking if "python" can be used
#8 14.97 gyp verb find Python - executing "python" to get executable path
#8 14.98 gyp verb find Python - executable path is "/usr/bin/python"
#8 14.98 gyp verb find Python - executing "/usr/bin/python" to get version
#8 14.99 gyp verb find Python - version is "2.7.13"
#8 14.99 gyp verb find Python - version is 2.7.13 - should be >=3.6.0
#8 14.99 gyp verb find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
#8 14.99 gyp ERR! find Python
#8 14.99 gyp ERR! find Python Python is not set from command line or npm configuration
#8 14.99 gyp ERR! find Python Python is not set from environment variable PYTHON
#8 14.99 gyp ERR! find Python checking if "python3" can be used
#8 14.99 gyp ERR! find Python - executable path is "/usr/bin/python3"
#8 14.99 gyp ERR! find Python - version is "3.5.3"
#8 14.99 gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0
#8 14.99 gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
#8 14.99 gyp ERR! find Python checking if "python" can be used
#8 14.99 gyp ERR! find Python - executable path is "/usr/bin/python"
#8 14.99 gyp ERR! find Python - version is "2.7.13"
#8 14.99 gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
#8 14.99 gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
#8 14.99 gyp ERR! find Python
#8 14.99 gyp ERR! find Python **********************************************************
#8 14.99 gyp ERR! find Python You need to install the latest version of Python.
#8 14.99 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#8 14.99 gyp ERR! find Python you can try one of the following options:
#8 14.99 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#8 14.99 gyp ERR! find Python   (accepted by both node-gyp and npm)
#8 14.99 gyp ERR! find Python - Set the environment variable PYTHON
#8 14.99 gyp ERR! find Python - Set the npm configuration variable python:
#8 14.99 gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
#8 14.99 gyp ERR! find Python For more information consult the documentation at:
#8 14.99 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#8 14.99 gyp ERR! find Python **********************************************************