We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
npm install -g
1 parent dbbd739 commit 8559023Copy full SHA for 8559023
1 file changed
crates/vite_install/src/commands/update.rs
@@ -48,19 +48,6 @@ impl PackageManager {
48
let envs = HashMap::from([("PATH".to_string(), format_path_env(self.get_bin_prefix()))]);
49
let mut args: Vec<String> = Vec::new();
50
51
- // global packages should use npm cli only
52
- if options.global {
53
- bin_name = "npm".into();
54
- args.push("update".into());
55
- args.push("--global".into());
56
- if let Some(pass_through_args) = options.pass_through_args {
57
- args.extend_from_slice(pass_through_args);
58
- }
59
- args.extend_from_slice(options.packages);
60
-
61
- return ResolveCommandResult { bin_path: bin_name, args, envs };
62
63
64
match self.client {
65
PackageManagerType::Pnpm => {
66
bin_name = "pnpm".into();
0 commit comments