Here is the error when I use yarn Intall
:
[4/5] ⠠ node-sass
error C:\sing-app-react-master\nodemodules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\sing-app-react-master\nodemodules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\sing-app-react-master\nodemodules\node-gyp\bin\node-gyp.js rebuild --verbose --libsassext= --libsasscflags= --libsassldflags= --libsasslibrary=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'C:\sing-app-react-master\nodemodules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsassext=',
gyp verb cli '--libsasscflags=',
gyp verb cli '--libsassldflags=',
gyp verb cli '--libsasslibrary='
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
gyp verb which
failed at getNotFoundError (C:\sing-app-react-master\nodemodules\which\which.js:13:12)
gyp verb which
failed at F (C:\sing-app-react-master\nodemodules\which\which.js:68:19)
gyp verb which
failed at E (C:\sing-app-react-master\nodemodules\which\which.js:80:29)
gyp verb which
failed at C:\sing-app-react-master\nodemodules\which\which.js:89:16
gyp verb which
failed at C:\sing-app-react-master\nodemodules\isexe\index.js:42:5
gyp verb which
failed at C:\sing-app-react-master\nodemodules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb which
failed python2 Error: not found: python2
gyp verb which
failed at getNotFoundError (C:\sing-app-react-master\nodemodules\which\which.js:13:12)
gyp verb which
failed at F (C:\sing-app-react-master\nodemodules\which\which.js:68:19)
gyp verb which
failed at E (C:\sing-app-react-master\nodemodules\which\which.js:80:29)
gyp verb which
failed at C:\sing-app-react-master\nodemodules\which\which.js:89:16
gyp verb which
failed at C:\sing-app-react-master\nodemodules\isexe\index.js:42:5
gyp verb which
failed at C:\sing-app-react-master\nodemodules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb which
failed code: 'ENOENT'
gyp verb which
failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which
succeeded python C:\Users\mvahedi.ET-ETA408-LM1\anaconda3\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\mvahedi.ET-ETA408-LM1\anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.versioninfo[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.versioninfo[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:childprocess:399:12)
gyp ERR! stack at ChildProcess.emit (node:events:520:28)
gyp ERR! stack at maybeClose (node:internal/childprocess:1090:16)
gyp ERR! stack at Process.ChildProcess.handle.onexit (node:internal/childprocess:302:5)
gyp ERR! System WindowsNT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\sing-app-react-master\nodemodules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsassext=" "--libsasscflags=" "--libsassldflags=" "--libsasslibrary="
gyp ERR! cwd C:\sing-app-react-master\node_modules\node-sass
gyp ERR! node -v v17.4.0