-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postinstall
is broken on Windows
#118
Comments
As a workaround you can install like this: This will skip the |
It seems like the error is caused by the semicolon being considered part of the path in Powershell. If I separate the semicolon from the path with a space, the |
Aha, apparently {
"name": "test",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"postinstall": "echo 'first'; echo 'second'"
}
} On Windows 10 PowerShell, we get: PS C:\Users\user\Documents\test> npm run postinstall
> test@1.0.0 postinstall
> echo 'first'; echo 'second'
'first'; echo 'second' While on a Fedora zsh this runs like expected: ❯ npm run postinstall
> [email protected] postinstall
> echo 'first'; echo 'second'
first
second It should be noted that this is not an issue with PowerShell, as this runs it just fine: PS C:\Users\user\Documents\test> echo 'first'; echo 'second'
first
second The problem is that the normal Windows cmd does not recognize |
The examples for Android seem to run fine on Windows, after I fixed the install. |
Error (this was when running
npm i -g tweasel-cli
):Full debug log: 2023-07-12T21_42_03_073Z-debug-0.log
The text was updated successfully, but these errors were encountered: