ionic-team / capacitor-testapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`npm run toggle-local` doesn't work in Windows

carlpoole opened this issue · comments

Bug Report

Plugin(s)

Not plugin specific, development in repo

Capacitor Version

$ npx cap doctor
Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 3.4.0
@capacitor/core: 3.4.0
@capacitor/android: 3.4.0
@capacitor/ios: 3.4.0

Installed Dependencies:

@capacitor/cli: 3.3.4
@capacitor/android: 3.3.4
@capacitor/core: 3.3.4
@capacitor/ios: 3.3.4

$ npm run toggle-local

> capacitor-testapp@0.0.1 toggle-local
> node ./scripts/toggle-local.mjs

Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Platform(s)

Windows 10 Home
Version 10.0.19044 Build 19044

Current Behavior

fails to run

Expected Behavior

toggle-local script should work

Other Technical Details

$ node -v
v16.13.2

$ npm -v
8.1.2