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

install package failed #38

Open
lancy6001 opened this issue Aug 8, 2024 · 0 comments
Open

install package failed #38

lancy6001 opened this issue Aug 8, 2024 · 0 comments

Comments

@lancy6001
Copy link

lancy6001 commented Aug 8, 2024

Question(Issue)

Windows 电脑,Visual studio Code 1.92.0; node 版本:v20.12.1 ; 已安装python 3.12.5,未配置环境变量
我下载代码后,在我本地的VS code里面运行npm install. 跑了一些包,然后开始报错如下:
npm ERR! code 1
npm ERR! path C:\html2md-main-can'trun\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 C:\0Work\StudyDemo\pdf2md\html2md-main-can'trun\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
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! gyp verb cli "C:\html2md-main-can'trun\node_modules\node-gyp\bin\node-gyp.js",
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | 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
image
怎么弄能跑起来? 谢谢!

@lancy6001 lancy6001 changed the title can't install sucessfully can't install package successfully Aug 9, 2024
@lancy6001 lancy6001 changed the title can't install package successfully install package failed Aug 9, 2024
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