Errors on npm install

Gravatar

Hi Support Team,

I bought the Sing App React Template and I get the following error when I run the npm install. Could you help me to fix this issue?

npm WARN tarball tarball data for bootstrapcalendar@git+https://github.com/xero/bootstrapcalendar.git (null) seems to be corrupted. Trying again. npm WARN tarball tarball data for bootstrapcalendar@git+https://github.com/xero/bootstrapcalendar.git (null) seems to be corrupted. Trying again. npm WARN tarball tarball data for flot.dashes@git+https://github.com/cquartier/flot.dashes.git (null) seems to be corrupted. Trying again. npm WARN tarball tarball data for flot.dashes@git+https://github.com/cquartier/flot.dashes.git (null) seems to be corrupted. Trying again. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! nodemodules/react npm ERR! react@"^16.14.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^0.14.0 || ^15.0.0" from [email protected] npm ERR! nodemodules/formsy-react npm ERR! formsy-react@"0.19.5" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Thanks, Mohammad

User profile image
Michael Daineka

Hey!

Please, try to install dependencies with yarn install it should work.

BR,

Gravatar

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

User profile image
Michael Daineka

The current Node.js version doesn't support node-sass version installed.

Please, replace old ones in your package.json file. "node-sass": "4.12.0", "sass-loader": "7.1.0", With these:

"node-sass": "6.0.0", "sass-loader": "^10",

Then delete node_modules folder and install the packages with yarn install

Best

Cookie Consent

By continuing to browse or by clicking 'OK', you agree to the storing of cookies on your device to enhance your site experience and for analytical purposes. To learn more about how we use cookies, please see our cookies policy.