Hi Team,
When we are trying to install node-sass@latest version in my local windows machine got command failed error.
Please help
[email protected]
[email protected].
1281 timing build:link:node_modules/read-pkg/node_modules/semver Completed in 68ms
1282 timing build:link Completed in 70ms
1283 info run [email protected] install node_modules/node-sass node scripts/install.js
1284 info run [email protected] install { code: 0, signal: null }
1285 timing build:run:install:node_modules/node-sass Completed in 3422ms
1286 timing build:run:install Completed in 3424ms
1287 info run [email protected] postinstall node_modules/node-sass node scripts/build.js
1288 info run [email protected] postinstall { code: 1, signal: null }
1289 timing reify:rollback:createSparse Completed in 3941ms
1290 timing reify:rollback:retireShallow Completed in 0ms
1291 timing command:i Completed in 85529ms
1292 verbose stack Error: command failed
1292 verbose stack at ChildProcess. (C:\MyDrive\Softwares\nvm\v16.15.1\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:63:27)
1292 verbose stack at ChildProcess.emit (node:events:527:28)
1292 verbose stack at maybeClose (node:internal/child_process:1092:16)
1292 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
1293 verbose pkgid [email protected]
1294 verbose cwd C:\MyDrive\Projects\MyWorks\nodejs
1295 verbose Windows_NT 10.0.19044
1296 verbose node v16.15.1
1297 verbose npm v8.13.1
1298 error code 1
1299 error path C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-sass
1300 error command failed
1301 error command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\OJL1KOR\AppData\Local\Temp\postinstall-1656492368564.cmd
1302 error Building: C:\Program Files\nodejs\node.exe C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
1303 error gyp info it worked if it ends with ok
1303 error gyp verb cli [
1303 error gyp verb cli 'C:\Program Files\nodejs\node.exe',
1303 error gyp verb cli 'C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-gyp\bin\node-gyp.js',
1303 error gyp verb cli 'rebuild',
1303 error gyp verb cli '--verbose',
1303 error gyp verb cli '--libsass_ext=',
1303 error gyp verb cli '--libsass_cflags=',
1303 error gyp verb cli '--libsass_ldflags=',
1303 error gyp verb cli '--libsass_library='
1303 error gyp verb cli ]
1303 error gyp info using [email protected]
1303 error gyp info using [email protected] | win32 | x64
1303 error gyp verb command rebuild []
1303 error gyp verb command clean []
1303 error gyp verb clean removing "build" directory
1303 error gyp verb command configure []
1303 error gyp verb find Python checking Python explicitly set from command line or npm configuration
1303 error gyp verb find Python - "--python=" or "npm config get python" is "C:\MyDrive\Softwares\Python310\python.exe"
1303 error gyp verb find Python - executing "C:\MyDrive\Softwares\Python310\python.exe" to get executable path
1303 error gyp verb find Python - executable path is "C:\MyDrive\Softwares\Python310\python.exe"
1303 error gyp verb find Python - executing "C:\MyDrive\Softwares\Python310\python.exe" to get version
1303 error gyp verb find Python - version is "3.10.4"
1303 error gyp info find Python using Python version 3.10.4 found at "C:\MyDrive\Softwares\Python310\python.exe"
1303 error gyp verb get node dir no --target version specified, falling back to host node version: 16.15.1
1303 error gyp verb command install [ '16.15.1' ]
1303 error gyp verb install input version string "16.15.1"
1303 error gyp verb install installing version: 16.15.1
1303 error gyp verb install --ensure was passed, so won't reinstall if already installed
1303 error gyp verb install version not already installed, continuing with install 16.15.1
1303 error gyp verb ensuring nodedir is created C:\Users\OJL1KOR\AppData\Local\node-gyp\Cache\16.15.1
1303 error gyp verb created nodedir C:\Users\OJL1KOR\AppData\Local\node-gyp\Cache\16.15.1
1303 error gyp http GET https://nodejs.org/download/release/v16.15.1/node-v16.15.1-headers.tar.gz
1303 error gyp http 407 https://nodejs.org/download/release/v16.15.1/node-v16.15.1-headers.tar.gz
1303 error gyp WARN install got an error, rolling back install
1303 error gyp verb command remove [ '16.15.1' ]
1303 error gyp verb remove using node-gyp dir: C:\Users\OJL1KOR\AppData\Local\node-gyp\Cache
1303 error gyp verb remove removing target version: 16.15.1
1303 error gyp verb remove removing development files for version: 16.15.1
1303 error gyp ERR! configure error
1303 error gyp ERR! stack Error: 407 response downloading https://nodejs.org/download/release/v16.15.1/node-v16.15.1-headers.tar.gz
1303 error gyp ERR! stack at go (C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-gyp\lib\install.js:153:17)
1303 error gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:96:5)
1303 error gyp ERR! stack at async install (C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-gyp\lib\install.js:62:18)
1303 error gyp ERR! System Windows_NT 10.0.19044
1303 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
1303 error gyp ERR! cwd C:\MyDrive\Projects\MyWorks\nodejs\node_modules\node-sass
1303 error gyp ERR! node -v v16.15.1
1303 error gyp ERR! node-gyp -v v8.4.1
1303 error gyp ERR! not ok
1303 error Build failed with error code: 1
1304 verbose exit 1
1305 timing npm Completed in 86101ms
1306 verbose unfinished npm timer reify 1656492291518
1307 verbose unfinished npm timer reify:build 1656492364853
1308 verbose unfinished npm timer build 1656492364853
1309 verbose unfinished npm timer build:deps 1656492364853
1310 verbose unfinished npm timer build:run:postinstall 1656492368460
1311 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1656492368460
1312 verbose code 1
1313 error A complete log of this run can be found in: