Skip to content

Commit 8fea2fc

Browse files
never use NPM v1 on windows (#1455)
1 parent ba3bbe0 commit 8fea2fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

npm/cmd/start.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ func newStartNPMCmd() *cobra.Command {
6868

6969
func start(config npmconfig.Config, flags npmconfig.Flags) error {
7070
klog.Infof("loaded config: %+v", config)
71+
if util.IsWindowsDP() {
72+
config.Toggles.EnableV2NPM = true
73+
klog.Infof("NPM is running on Windows Dataplane. Enabling V2 NPM")
74+
} else {
75+
klog.Infof("NPM is running on Linux Dataplane")
76+
}
7177
klog.Infof("starting NPM version %d with image %s", config.NPMVersion(), version)
7278

7379
var err error

0 commit comments

Comments
 (0)