vue 老项目 npm install 报错Python,c++等相关错误

​​​

  1. 老项目npm install 下载依赖包报错

  2. 解决方法:

    //下载python
    1、 npm install --global --production windows-build-tools
    //配置环境 : 也可暂时不用配置,能用就不用配置
    (npm config set python "D:\Python27\python.exe" npm config set node_gyp)
    2、 //下载 fibers
    npm install fibers@5.0.0 --ignore-scripts
    3、//重新执行下载依赖命令
    npm install
    //如果不好使 可以试试再执行:
    npm install --unsafe-perm
    yum install gcc-c++ 也需要下载
    // 然后重新执行npm install

​​

​​

相关推荐
AI探索者1 天前
LangGraph StateGraph 实战:状态机聊天机器人构建指南
python
AI探索者1 天前
LangGraph 入门:构建带记忆功能的天气查询 Agent
python
FishCoderh1 天前
Python自动化办公实战:批量重命名文件,告别手动操作
python
躺平大鹅1 天前
Python函数入门详解(定义+调用+参数)
python
曲幽1 天前
我用FastAPI接ollama大模型,差点被asyncio整崩溃(附对话窗口实战)
python·fastapi·web·async·httpx·asyncio·ollama
_AaronWong1 天前
Electron 实现仿豆包划词取词功能:从 AI 生成到落地踩坑记
前端·javascript·vue.js
wuhen_n1 天前
双端 Diff 算法详解
前端·javascript·vue.js
两万五千个小时1 天前
落地实现 Anthropic Multi-Agent Research System
人工智能·python·架构
爱勇宝1 天前
别再混用了!import.meta.env 与 process.env 的本质差异一次讲透
前端·javascript·vue.js
codingWhat1 天前
前端组件库开发实践:从零到发布
前端·npm·vite