jonschlinkert / global-prefix

Get the npm global path prefix. Same code used internally by npm.
MIT License
28 stars 12 forks source link

Uncaught TypeError: isWindows is not a function #7

Closed vjpr closed 8 years ago

vjpr commented 8 years ago

This has broken the cwd when running with webpack.

** ./~/cwd/~/find-pkg/~/find-file-up/~/resolve-dir/~/global-modules/~/global-prefix/index.js

} else if (isWindows === true || isWindows()) {

is-windows module returns a value, not a function.

jonschlinkert commented 8 years ago

this should be fixed