volt-react-dashboard icon indicating copy to clipboard operation
volt-react-dashboard copied to clipboard

Replace node-sass with saas.

Open bepitulaz opened this issue 2 years ago • 0 comments

The node-sass package is deprecated and need Python 2.7, so that it can't be installed in the new system such as Apple M1 computer. All projects that still uses node-sass must change into Sass, the pure JavaScript implementation.

More info: https://sass-lang.com/blog/libsass-is-deprecated

The error in Apple M1 computer:

gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed     at getNotFoundError (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb `which` failed  python Error: not found: python
gyp verb `which` failed     at getNotFoundError (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:80:29)
gyp ERR! stack     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/which/which.js:89:16
gyp ERR! stack     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /Users/asep/PersonalProject/volt-react-dashboard/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Darwin 21.4.0
gyp ERR! command "/Users/asep/.nvm/versions/node/v16.13.0/bin/node" "/Users/asep/PersonalProject/volt-react-dashboard/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/asep/PersonalProject/volt-react-dashboard/node_modules/node-sass
gyp ERR! node -v v16.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

bepitulaz avatar Apr 17 '22 16:04 bepitulaz