{"id":197,"hash":"9a139f0f0aac8c51fe91d8b2ba1b9deb55d0e87f22852605851e0b77ab799e1a","pattern":"error /node_modules/node-sass: Command failed","full_message":"When I tried install vue store front in my local but when I tried \"yarn install\" command I get following error. How can I solve this error? How can I solve this error?\n\nerror /var/www/html/vue-storefront/node_modules/node-sass: Command failed.\nExit code: 1\nCommand: node scripts/build.js\nArguments: \nDirectory: /var/www/html/vue-storefront/node_modules/node-sass\nOutput:\nBuilding: /usr/bin/node /var/www/html/vue-storefront/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=\ngyp info it worked if it ends with ok\ngyp verb cli [\ngyp verb cli   '/usr/bin/node',\ngyp verb cli   '/var/www/html/vue-storefront/node_modules/node-gyp/bin/node-gyp.js',\ngyp verb cli   'rebuild',\ngyp verb cli   '--verbose',\ngyp verb cli   '--libsass_ext=',\ngyp verb cli   '--libsass_cflags=',\ngyp verb cli   '--libsass_ldflags=',\ngyp verb cli   '--libsass_library='\ngyp verb cli ]\ngyp info using node-gyp@3.8.0\ngyp info using node@13.9.0 | linux | x64\ngyp verb command rebuild []\ngyp verb command clean []\ngyp verb clean removing \"build\" directory\ngyp verb command configure []\ngyp verb check python checking for Python executable \"/usr/bin/python3.6\" in the PATH\ngyp verb `which` succeeded /usr/bin/python3.6 /usr/bin/python3.6\ngyp ERR! configure error \ngyp ERR! stack Error: Command failed: /usr/bin/python3.6 -c import sys; print \"%s.%s.%s\" % sys.version_info[:3];\ngyp ERR! stack   File \"<string>\", line 1\ngyp ERR! stack     import sys; print \"%s.%s.%s\" % sys.version_info[:3];\ngyp ERR! stack                                ^\ngyp ERR! stack SyntaxError: invalid syntax\ngyp ERR! stack \ngyp ERR! stack     at ChildProcess.exithandler (child_process.js:303:12)\ngyp ERR! stack     at ChildProcess.emit (events.js:321:20)\ngyp ERR! stack     at maybeClose (internal/child_process.js:1026:16)\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)\ngyp ERR! System Linux 4.15.0-88-generic\ngyp ERR! command \"/usr/bin/node\" \"/var/www/html/vue-storefront/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"\ngyp ERR! cwd /var/www/html/vue-storefront/node_modules/node-sass\ngyp ERR! node -v v13.9.0","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"I had the same problem and I solved with the steps:\n\nIf your are on Apple M1 Chip, run Terminal with Rosetta 2 (optional, only necessary if you have the Node installed with Rosetta)\nCheck your node-sass version in your package.json and compare with the following table:\n\nNodeJS\nSupported node-sass version\nNode Module\n\nNode 20\n9.0+\n115\n\nNode 19\n8.0+\n111\n\nNode 18\n8.0+\n108\n\nNode 17\n7.0+, <8.0\n102\n\nNode 16\n6.0+\n93\n\nNode 15\n5.0+\n88\n\nNode 14\n4.14+\n83\n\nNode 13\n4.13+, <5.0\n79\n\nNode 12\n4.12+\n72\n\nNode 11\n4.10+, <5.0\n67\n\nNode 10\n4.9+, <6.0\n64\n\nNode 8\n4.5.3+, <5.0\n57\n\nNode <8\n<5.0\n<57\n\nCheck your Node version with: node --version\nInstall the Nodejs version according with your node-sass, if your are using NVM, run: nvm use DESIRED_VERSION\nClean old node_modules deleting the folder or type this on terminal: rm -rf node_modules\nRun: npm install\n\nResource:\n\nNPM node-sass","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/60394291/error-node-modules-node-sass-command-failed","votes":318,"created_at":"2026-04-19T04:41:31.368748+00:00","updated_at":"2026-04-19T04:51:13.113171+00:00"}