mall-admin-web-master前端项目下载依赖失败解决

碰壁后的总结

  1. pythone 环境 2.XX版本,切记不要3.0以上的。
  2. node 16.x不能太高

错误案例

npm ERR! code 1
npm ERR! path D:\workspace\springBootMall\mall-admin-web-master\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: D:\APPS\nvm\nodejs\node.exe D:\workspace\springBootMall\mall-admin-web-master\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   'D:\\APPS\\nvm\\nodejs\\node.exe',
npm ERR! gyp verb cli   'D:\\workspace\\springBootMall\\mall-admin-web-master\\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 node-gyp@7.1.2
npm ERR! gyp info using node@16.20.2 | 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 find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
npm ERR! gyp verb find Python checking if "python" can be used
npm ERR! gyp verb find Python - executing "python" to get executable path
npm ERR! gyp verb find Python - "python" is not in PATH or produced an error
npm ERR! gyp verb find Python checking if "python2" can be used
npm ERR! gyp verb find Python - executing "python2" to get executable path
npm ERR! gyp verb find Python - "python2" is not in PATH or produced an error
npm ERR! gyp verb find Python checking if Python is C:\Python37\python.exe
npm ERR! gyp verb find Python - executing "C:\Python37\python.exe" to get version
npm ERR! gyp verb find Python - "C:\Python37\python.exe" could not be run
npm ERR! gyp verb find Python checking if Python is C:\Python27\python.exe
npm ERR! gyp verb find Python - executing "C:\Python27\python.exe" to get version
npm ERR! gyp verb find Python - "C:\Python27\python.exe" could not be run
npm ERR! gyp verb find Python checking if the py launcher can be used to find Python
npm ERR! gyp verb find Python - executing "py.exe" to get Python executable path
npm ERR! gyp verb find Python - "py.exe" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python2" can be used
npm ERR! gyp ERR! find Python - "python2" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if Python is C:\Python37\python.exe
npm ERR! gyp ERR! find Python - "C:\Python37\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Python27\python.exe
npm ERR! gyp ERR! find Python - "C:\Python27\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python
npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack     at PythonFinder.fail (D:\workspace\springBootMall\mall-admin-web-master\node_modules\node-gyp\lib\find-python.js:302:47)
npm ERR! gyp ERR! stack     at PythonFinder.runChecks (D:\workspace\springBootMall\mall-admin-web-master\node_modules\node-gyp\lib\find-python.js:136:21)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (D:\workspace\springBootMall\mall-admin-web-master\node_modules\node-gyp\lib\find-python.js:200:18)
npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (D:\workspace\springBootMall\mall-admin-web-master\node_modules\node-gyp\lib\find-python.js:266:16)
npm ERR! gyp ERR! stack     at exithandler (node:child_process:410:5)
npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:422:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:485:16)
npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "D:\\APPS\\nvm\\nodejs\\node.exe" "D:\\workspace\\springBootMall\\mall-admin-web-master\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd D:\workspace\springBootMall\mall-admin-web-master\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.20.2
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\APPS\ToolApp\node16\node_cache\_logs\2024-08-13T14_50_26_564Z-debug-0.log

解决 :

1.删除当前依赖包

npm uninstall node-sass sass-loader

2.下载如下版本

npm i node-sass@6.0.1 sass-loader@7.0.3

3.如果下载失败,可能是网络问题,换一个源

npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass

4.下载依赖

npm install

5.运行

npm run dev
### 回答1: mall-admin-web-master 是一个商城管理系统的前端项目。该项目采用了现代化的前端技术栈,包括 Vue.js 框架、Element-UI 组件库等,以提供一个用户友好、功能强大的商城管理界面。 mall-admin-web-master 的主要功能包括用户管理、商品管理、订单管理以及数据统计等。用户管理模块可以对商城用户进行增删改查操作,包括用户信息、权限设置等。商品管理模块可以对商城商品进行管理,包括商品录入、编辑、上架、下架等操作。订单管理模块可以对商城订单进行管理,包括订单查询、订单发货、订单退款等操作。数据统计模块可以对商城的销售数据进行统计和分析,为商城经营提供参考依据。 mall-admin-web-master 还具备一些高级功能和技术特点。通过与后端 API 的交互,实现与商城后台的数据同步和交互。支持响应式布局,可以适配不同设备的屏幕尺寸,例如电脑、平板和手机。利用前端路由技术,实现了页面之间的无刷新切换以及浏览器的前进后退功能。同时,该项目还具备良好的代码结构和可扩展性,可以方便地进行二次开发和定制。 mall-admin-web-master 是一个非常实用的商城管理系统前端项目,通过它,商城管理员可以方便地进行各项管理操作,并获取有关商城经营情况的统计数据,为商城的运营提供支持和决策依据。 ### 回答2: mall-admin-web-master 是一个项目文件夹的名称,通常是指商城后台管理系统的前端代码。这个项目包含了商城后台管理系统所需的各种功能和页面,利用这些代码可以搭建起一个完整的商城后台管理系统。 mall-admin-web-master 的代码主要使用了前端开发技术,例如HTML、CSS和JavaScript等。通过这些技术,开发者可以创建出用户友好、美观且功能强大的商城后台管理页面。 商城后台管理系统是为了方便管理员管理商城运营而开发的一个系统。它包括了商品管理、订单管理、用户管理、数据统计分析等各种功能模块,通过使用这个系统,管理员可以方便地管理商城的运营和销售数据,提升工作效率。 mall-admin-web-master 的代码是为了实现上述功能而编写的,它通过与后端服务器进行交互,获取商城的数据,并将数据以友好的方式展示给管理员。同时,它还提供了各种操作界面,使管理员可以方便地对商城的各项运营进行管理。 总之,mall-admin-web-master 是一个商城后台管理系统的前端代码,通过它可以实现商城的后台管理功能,提升管理员的工作效率。 ### 回答3: mall-admin-web-master 是一个商场管理系统的前端项目,细分为商场管理系统的前端部分。该项目的主要功能是通过网页界面来实现商场的管理操作。具体来说,mall-admin-web-master 主要包括以下几个方面: 1. 登录注册模块:提供用户登录和注册功能,保证商场管理者可以安全地访问和操作系统。 2. 商场概述模块:展示商场的整体运营情况,包括当天的营业额、商品销售量等重要数据,帮助管理者了解商场的整体运营状况。 3. 商品管理模块:提供对商场内商品进行增删改查的功能,包括商品的添加、编辑、删除和查询等操作,方便管理者对商品进行全面的管理。 4. 订单管理模块:对商场内的订单进行管理,包括订单的查询、审核、发货等操作,帮助管理者实现对订单的有效管理,提高订单处理的效率。 5. 店铺管理模块:对商场内的店铺进行管理,包括店铺的添加、编辑、删除等操作,帮助管理者对店铺进行管理和布局。 6. 用户管理模块:对商场内的用户进行管理,包括用户的注册信息、下单记录、余额等进行管理,方便管理者对用户进行跟踪和统计。 总的来说,mall-admin-web-master 是一个功能丰富、操作简便的商场管理系统前端项目,能够帮助商场管理者有效地进行商场的管理和运营。其用户友好的界面设计和强大的功能模块,能够提高商场管理的效率和水平。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

二手Java程序员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值