修复node全局安装时的权限问题

This commit is contained in:
xintaofei
2026-03-31 16:00:04 +08:00
parent a9f6ce9105
commit 13c8deee84
4 changed files with 229 additions and 17 deletions

View File

@@ -9,6 +9,8 @@ use codeg_lib::web::{
#[tokio::main]
async fn main() {
codeg_lib::process::ensure_user_npm_prefix_in_path();
let port: u16 = std::env::var("CODEG_PORT")
.ok()
.and_then(|v| v.parse().ok())