cspotcode / npm-pwsh

Install PowerShell via npm for use in npm scripts or elsewhere.
12 stars 5 forks source link

Assumptions about location of ".bin" folder are wrong for global installation #1

Closed cspotcode closed 6 years ago

cspotcode commented 6 years ago

In testing, modules globally install into $NPM_CONFIG_PREFIX/lib/node_modules/ but their binaries go into $NPM_CONFIG_PREFIX/bin/.

Is there some way to ask npm where it puts binaries? Or query it for which mode we're running in: global or local?

cspotcode commented 6 years ago

Fixed in 0.0.7.