fix: npm install 前强制清理 node_modules,避免残留状态导致 semver Invalid Version 错误
This commit is contained in:
parent
c5a6270ba7
commit
b99995de24
@ -190,6 +190,9 @@ function main() {
|
||||
' fi',
|
||||
' fi',
|
||||
'fi',
|
||||
// 清理 node_modules 后重新安装,避免残留状态导致 npm semver 冲突
|
||||
'echo "正在清理旧 node_modules ..."',
|
||||
'rm -rf "$TARGET_DIR/node_modules"',
|
||||
'npm install --production',
|
||||
].join('\n');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user