Skip to content

if ( pnkit update ) not work, try this..... #9

@Turkm

Description

@Turkm

i think this just a windows issue, so if you try use (pnkit update) it will throw an exception, and the problem is here:
C:\Users{user}\AppData\Roaming\npm\node_modules\phaser-node-kit\lib\update.js
in these line (22):
const npm = spawn('npm', ['install', 'phaser-ce@latest'], { cwd: paths.cli.base, stdio: ['pipe', 'ignore', 'ignore']})

just change it to this:
const npm = spawn('npm.cmd', ['install', 'phaser-ce@latest'], { cwd: paths.cli.base, stdio: ['pipe', 'ignore', 'ignore']})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions