Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-sass 运行失败 #78

Open
Imhanghang opened this issue Aug 17, 2023 · 0 comments
Open

node-sass 运行失败 #78

Imhanghang opened this issue Aug 17, 2023 · 0 comments

Comments

@Imhanghang
Copy link

下面的错误信息可以看到,运行gulp-sass中的node-sass时失败,这里是3.2.1版本的gulp-sass它依赖4.14版本的node-saas,运行这个saas的时候和我用的node版本(16)不兼容,(4.14版本的node-sass对应的node版本的是14),但是如果我用14版本的node,又会导致其他依赖不兼容:error @noble/[email protected]: The engine "node" is incompatible with this module. Expected version ">= 16". Got "14.16.0"

error D:\project\fingernft\fingernft\vue-web\node_modules\gulp-sass\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\project\fingernft\fingernft\vue-web\node_modules\gulp-sass\node_modules\node-sass
Output:
Building: C:\environment\nodejs\node.exe D:\project\fingernft\fingernft\vue-web\node_modules\gulp-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_lib
rary=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\environment\nodejs\node.exe',
gyp verb cli 'D:\project\fingernft\fingernft\vue-web\node_modules\gulp-sass\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 [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 download using dist-url https://npm.taobao.org/dist
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 (D:\project\fingernft\fingernft\vue-web\node_modules\which\which.js:13:12)
gyp verb which failed at F (D:\project\fingernft\fingernft\vue-web\node_modules\which\which.js:68:19)
gyp verb which failed at E (D:\project\fingernft\fingernft\vue-web\node_modules\which\which.js:80:29)
gyp verb which failed at D:\project\fingernft\fingernft\vue-web\node_modules\which\which.js:89:16
gyp verb which failed at D:\project\fingernft\fingernft\vue-web\node_modules\isexe\index.js:42:5
gyp verb which failed at D:\project\fingernft\fingernft\vue-web\node_modules\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 (D:\project\fingernft\fingernft\vue-web\node_modules\which\which.js:13:12)
gyp verb which failed at F (D:\project\fingernft\fingernft\vue-web\node_modules\which\which.js:68:19)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\environment\nodejs\node.exe" "D:\project\fingernft\fingernft\vue-web\node_modules\gulp-sass\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\project\fingernft\fingernft\vue-web\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v16.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant