knksmith57 / hexo-renderer-sass

Sass renderer plugin for Hexo
45 stars 45 forks source link

Installation error with npm on Windows #50

Closed kirby123-cmd closed 1 year ago

kirby123-cmd commented 1 year ago

I am trying to install the node-sass package using npm on my Windows 11 machine in vscode, but I am getting the following error:

npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm ERR! code 1 npm ERR! path E:\My website\hexo\node_modules\node-sass npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Building: C:\Program Files\nodejs\node.exe E:\My website\hexo\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! Debugger attached. npm ERR! Debugger attached. npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli 'C:\Program Files\nodejs\node.exe', npm ERR npm ERR! gyp info using node-gyp@3.8.0 npm ERR! gyp info using node@19.3.0 | win32 | x64 npm ERR! gyp verb command rebuild [] npm ERR! gyp verb command clean [] npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [] npm ERR! gyp verb check python checking for Python executable "python2" in the PATH npm ERR! gyp verb which failed Error: not found: python2 npm ERR! gyp verb which failed at getNotFoundError (E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:13:12) npm ERR! gyp verb which failed at F (E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:68:19) npm ERR! gyp verb which failed at E (E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:80:29) npm ERR! gyp verb which failed at E:\My website\hex npm ERR! gyp verb which failed at E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:89:16 npm ERR! gyp verb which failed at E:\My website\hexo\node_modules\isexe\index.js:42:5 npm ERR! gyp verb which failed at E:\My website\hexo\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:190:21) npm ERR! gyp verb which failed python2 Error: not found: python2 npm ERR! gyp verb which failed at getNotFoundError (E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:13:12) npm ERR! gyp verb which failed at F (E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:68:19) npm ERR! gyp verb which failed at E (E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:80:29) npm ERR! gyp verb which failed at E:\My website\hexo\node_modules\node-gyp\node_modules\which\which.js:89:16 npm ERR! gyp verb which failed at E:\My website\hexo\node_modules\isexe\index.js:42:5 npm ERR! gyp verb which failed

JLHwung commented 1 year ago

This issue is resolved in #44, we longer require node-gyp.