Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Cannot read property 'indexOf' of undefined #5

Closed
ghost opened this issue Jun 30, 2015 · 1 comment
Closed

Cannot read property 'indexOf' of undefined #5

ghost opened this issue Jun 30, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 30, 2015

npm-windows-upgrade
npm-upgrade-windows 0.1.5
? This tool will upgrade npm. Do you want to continue? Yes
? Which version do you want to install? 2.12.1
Upgrading.. -

npm-windows-upgrade\bin\npm-windows-upgrade:65
        } else if (output[output.length].indexOf('All done!') > -1) {
                                        ^
TypeError: Cannot read property 'indexOf' of undefined
    at C:\Users\User\AppData\Roaming\npm\node_modules\npm-windows-upgrade\bin\npm-windows-upgrade:65:41
    at ChildProcess.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\npm-windows-upgrade\bin\npm-windows-upgrade:29:9)
    at ChildProcess.emit (events.js:110:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1074:12)

I get this error after the elevated power-shell window is spawned. The upgrade finished successfully though and I confirmed it with npm version

@felixrieseberg
Copy link
Owner

Thanks! Fixed in 2daf58a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant