-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to install v0.12.11 #1833
Comments
Saw the same error, also using powershell (but npm 6.4.13 rather than yarn). |
@Methuselah96 @bboyle Thanks for the report! |
Apologies for messing this one up. I actually noticed that this might happen with Yarn on Windows but wasn't aware of its widespread use… It didn't take long for this report to materialize :) On Yarn we don't need to run this at all, which was the intent of that statement. But it looks like Windows can't handle these conditionals. @sapics I don't think your fix is right, because on So maybe this would work? |
I guess it would work. I have installed |
It works in my local Windows10! |
@sapics are you on Yarn 2 or 1? If version 2, could you also test 1? You can use the installer here: https://classic.yarnpkg.com/en/docs/install/#windows-stable |
@lehni I use [email protected]. |
@lehni This method was introduced at |
@sapics great find! Let's go with that! |
@sapics it doesn't seem to work yet, see https://travis-ci.org/github/paperjs/paper.js/builds/701801440 |
I think it simply doesn't get run at all now:
|
So why don't we use |
Oh, sorry... Now, I wake up :) |
I guess Dose it mean |
I have fixed as |
I have this issue with cmd and npm too. |
This is still happening on: |
This is still happening, |
Update your npm version and node. I had this problem, but after update everything is ok. |
still fails to install for me with I am using powershell. I don't think it likes that syntax. node v14.6.0 and npm v6.14.7 E:\GitHub\repository [chore/dependencies]> npm i
> paper@0.12.11 preinstall E:\GitHub\repository\node_modules\paper
> [[ $npm_config_heading == 'npm' ]] && npx npm-force-resolutions || true
'[[' is not recognized as an internal or external command,
operable program or batch file.
'true' is not recognized as an internal or external command,
operable program or batch file.
npm WARN @ngneat/spectator@5.12.0 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! paper@0.12.11 preinstall: `[[ $npm_config_heading == 'npm' ]] && npx npm-force-resolutions || true`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the paper@0.12.11 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ben\AppData\Roaming\npm-cache\_logs\2020-07-30T07_13_10_838Z-debug.log
E:\GitHub\repository [chore/dependencies +0 ~1 -0 !]> node -v
v14.6.0
E:\GitHub\repository [chore/dependencies +0 ~1 -0 !]> npm -v
6.14.7
E:\GitHub\repository [chore/dependencies +0 ~1 -0 !]> |
Switching from command prompt / PowerShell To Git Bash GUI Solved this for me. |
If you have bash.exe installed on your pc (installing git for windows puts it under Program Files) then you can set npm to use that for what it uses when running npm scripts. e.g. |
Just an FYI for those that asked, i did try to get this working via npm and other methods, but the suggested approaches complicate our build/deploy processes, so I shelved it. I found that ClipperJS fulfills our requirement, so I likely wont be revisiting paper unless another need arises. |
Is it possible for you to use bash to run you npm scripts? |
@whyld4900 That workaround is simple for a single user, however is there a simple cross-environment way to do that where it would work for a team that is on Windows/Linux/MacOS and on CI through a project configuration setting? It seems simpler to just pin your version to v0.12.8 for now, unless there's something critical you need from v0.12.9. |
The problem should only be for windows powershell or cmd, so most other users/build servers are using bash already. In our Azure pipeline the tests run on Linux (no issues) and we have a build for MacOS (no issues) and we have a windows build that has no issue either. Locally the windows devs have to use bash to run yarn install, but the windows cmd on the build server seems to work: |
@lehni I think that current develop version would work in Windows 10. Could you release a new version 0.12.12? |
It worked also for me. |
@sapics I'm so sorry for disappearing. I've been consistently swamped by work and life, trying to make some time for paper again soon ;( |
@lehni Thank you for your response while you are busy. I'm looking forward to your coming back! |
I have the same issue. |
I have the same issue too. Is there any follow-up/solution on this? |
Updating npm, running |
Just to confirm: [email protected] does not install on Windows 10 using Powershell, cmd or git-bash. |
I thought Git Bash works, but I'm not sure. |
@stefanuddenberg , @kamiyubidan , @Methuselah96 : here is the smallest repo demonstrating the problem, and solution. |
@whyld4900 Thanks. I tried it and it did install. For completeness though I'll post the error message I received probably due to my Windows user name having a space:
|
i have got the same problem, i solved it as mentioned above by using old version '0.12.8' |
@ayoub-root yeah.I've tried this,but I want to use the latest version- _ - |
Same problem |
use git bash on windows with |
@davidfeng thanks for the suggestion, but yarn is failing from time to time with some ESOCKETTIMEDOUT on windows so downgrade for a while is a better option in some cases :) |
Same problem here for Win 10. |
This is still broken in [email protected]. I'm on Ubuntu 18.04.
No wonder: |
Just tried with GitBash (after failing with PowerShell and cmd), it works. |
I have just released |
I confirm it works on my windows terminal (both cmd and PowerShell) as I install paper.js 0.12.12! |
Also confirmed, thanks!! :) |
Ok great! Closing this then. We can always reopen should there be persistent problems :) |
Description/Steps to reproduce
On install of
[email protected]
I get this error message when trying to install with PowerShell on Windows:Link to reproduction test-case
Expected result
Successful installation.
Additional information
Windows 10 Pro 18363.900
yarn v1.22.4
PowerShell 5.1.18362.752
The text was updated successfully, but these errors were encountered: