themesberg / volt-react-dashboard

Free and open source React.js admin dashboard template and UI library based on Bootstrap 5
https://demo.themesberg.com/volt-react-dashboard
MIT License
917 stars 377 forks source link

Cant get past /node-sass in install #29

Open rpanos opened 1 year ago

rpanos commented 1 year ago

I cant seem to get past the node-sass step. I tried using npm config to set python to 2.7 and 3.X. What could I be doing wrong?

= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". [4/4] 🔨 Building fresh packages... [-/12] ⡀ waiting... [-/12] ⡀ waiting... [-/12] ⢀ waiting... [4/12] ⢀ node-sass error /Users/xxx/Documents/code/omm-vrd/node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: /Users/xxx/Documents/code/omm-vrd/node_modules/node-sass Output: Building: /usr/local/Cellar/node/19.7.0/bin/node /Users/xxx/Documents/code/omm-vrd/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 '/usr/local/Cellar/node/19.7.0/bin/node', gyp verb cli '/Users/xxx/Documents/code/omm-vrd/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 node-gyp@3.8.0 gyp info using node@19.7.0 | darwin | 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 "/Library/Frameworks/Python.framework/Versions/3.11/bin/python3" in the PATH gyp verb which succeeded /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 gyp ERR! configure error gyp ERR! stack Error: Command failed: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (node:child_process:419:12) gyp ERR! stack at ChildProcess.emit (node:events:512:28) gyp ERR! stack at maybeClose (node:internal/child_process:1098:16) gyp ERR! stack at Socket. (node:internal/child_process:456:11) gyp ERR! stack at Socket.emit (node:events:512:28) gyp ERR! stack at Pipe. (node:net:316:12) gyp ERR! System Darwin 21.6.0 gyp ERR! command "/usr/local/Cellar/node/19.7.0/bin/node" "/Users/xxx/Documents/code/omm-vrd/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/xxx/Documents/code/omm-vrd/node_modules/node-sass gyp ERR! node -v v19.7.0

rhithesh commented 1 year ago

facing the same issue

alextrazah commented 1 year ago

Try to use node 14.17.4 it worked for me

app-generator commented 1 year ago

Hello! for compatibility with newer NodeJS versions (16.x, 18.x) pnpm manages well the build

$ pnpm i
$ gulp
shahzeb0099 commented 1 year ago

./src/scss/volt.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/scss/volt.scss) Error: Node Sass version 9.0.0 is incompatible with ^4.0.0. Please Help Me

Krisslk commented 1 year ago

./src/scss/volt.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/scss/volt.scss) Error: Node Sass version 9.0.0 is incompatible with ^4.0.0. Please Help Me

did you resolve it? I have the same issue

Krisslk commented 1 year ago

nvm use 14, npm install npm start

it will work