Skip to content

Commit

Permalink
feat: remove npm option --prefer-offline
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrieLii committed Feb 22, 2024
1 parent 780a6cb commit bbe6434
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/giant-forks-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/codesmith': patch
---

feat: remove npm option --prefer-offline
feat: 移除 npm --prefer-offline 参数
2 changes: 0 additions & 2 deletions packages/core/src/utils/packageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export async function runInstall(targetDir: string, registryUrl?: string) {
'install',
'--prod',
'--reporter=silent',
'--prefer-offline',
'--ignore-scripts',
];
if (registryUrl) {
Expand All @@ -64,7 +63,6 @@ export async function runInstall(targetDir: string, registryUrl?: string) {
'install',
'--production',
'--loglevel=error',
'--prefer-offline',
'--ignore-scripts',
];
if (registryUrl) {
Expand Down

0 comments on commit bbe6434

Please sign in to comment.