运行商城程序遇到的错误

在Windows环境中使用Visual Studio Code运行商城程序时遇到了问题,包括缺少pakage.json文件,打开大型文件夹的子文件时出现错误,以及在配置Node.js编译环境并安装node-sass后报错。参考链接提供了详细解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.没pakage.json
2.打开大文件夹下的子文件,报错

error D:\source\ff2022\lilivue\buyer\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\source\ff2022\lilivue\buyer\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe D:\source\ff2022\lilivue\buyer\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

添加windows下Node的编译环境,之后安装node-sass后报错
https://blog.youkuaiyun.com/luxiangy1314/article/details/105719772
3.

gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (D:\source\ff2022\lilivue\buyer\node_modules\vue-piczoom\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (D:\source\ff2022\lilivue\buyer\node_modules\vue-piczoom\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (D:\source\ff2022\lilivue\buyer\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\source\\ff2022\\lilivue\\buyer\\node_modules\\vue-piczoom\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\source\ff2022\lilivue\buyer\node_modules\vue-piczoom\node_modules\node-sass
gyp ERR! node -v v16.14.0
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值