cspotcode / npm-pwsh

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

Trying to `npm uninstall` throws error because `.bin/pwsh` symlink points to a file outside of npm's control #5

Closed cspotcode closed 6 years ago

cspotcode commented 6 years ago

Not sure how to address this. Maybe with a double-symlink? So node_modules/.bin/pwsh points to node_modules/get-powershell/bin/pwsh-redirect which is itself a symlink to the real pwsh binary?

EDIT: and does this issue also occur on Windows? Or no?

cspotcode commented 6 years ago

This problem also occurs on Windows, but the solution is the same, except with .cmd shims instead of symlinks.

cspotcode commented 6 years ago

Fixed in 0.0.7