[npm]go-admin本地部署时,前端npm安装问题解决

1 问题现象

go-admin是一个github开源项目,本地部署的时候,前端服务部署的时候报错了,有一些问题,如下:
[..................] \ idealTree:go-admin-ui: sill idealTree buildDeps npm install 卡住了,该如何解决

2 解决方法

深度清理残留​

# 删除所有 npm 相关缓存
rm -rf ~/.npm/_cacache/*
rm -rf ~/.npm/_logs/*

# 重置 npm 配置到默认
npm config delete registry
npm config delete proxy
npm config delete https-proxy
npm config delete strict-ssl

# 删除项目级残留
rm -rf node_modules
rm package-lock.json
rm .npmrc

# 重新构建
npm install
posted @ 2025-05-19 23:11  harrylearn66666  阅读(102)  评论(0)    收藏  举报