-
Notifications
You must be signed in to change notification settings - Fork 199
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
polymer init hangs in windows 10 env #725
Comments
Is there no integration build? |
I'm having the exact same problem, but: node v11.2.0 @kambeena were you able to solve it? If so, can you tell me how? Thank you so much |
same here: node v10.13.0
... and it's been sitting seemingly doing nothing for fifteen minutes now. is |
Solved. it was needed to enable W10 developer mode and install the Linux subsystem, follow these instructions: |
Seems like they should be first, since they're required in the current/latest version of windows - but yeah, you're right, that's the thing I missed - works perfectly once you've gone through those extra steps! Thanks! |
Thanks Amet. I solved problem by installing and using cygwin. |
Hi @AmetAlvirde, is there a workaround to install pre-requisites for polymer without Bash on the Windows Subsystem for Linux? |
Most of Polymer developer on Windows have GIT installed. Which enables "git bash here" in Explorer menu. The |
@anushagadepalli appearently @sashafirsov has the solution for you. |
I would think everything installs fine, just using power shell. Since this does not seem to be checked in CI on polymers side (no ci build aiming at windows as far as I know of), thing in windows will work or not, depending on luck ;) Get the linux subsystem installed. or develop in a docker image |
I've always been using git bash and never had to switch to the Ubuntu subsystem except for when using the modulizer. |
thanks @sashafirsov , this worked for me just fine I had a similar issue that polymer-cli 1.3 couldn't complete and didn't seem to do anything after running
#windows10 #powershell #polymer2 |
Thank you @sashafirsov. Using git bash shell is working fine for me. |
I used Ubuntu subsystem, because that's what the official documentation suggests since Polymer 2: https://polymer-library.polymer-project.org/2.0/docs/tools/polymer-cli but I'm really glad to see that it works just fine using git-bash, as it removes friction from setup to actually developing web components. Still prefer to be able to run Polymer in whatever terminal emulator I choose to. Thanks everyone for the feedback. |
polymer init polymer-3-starter-kit:app in the git bash here works fine for me. Thanks a lot .... |
Same here, polymer init works only with bash. It doesn't work with powershell, cmd or even a bash inside cmder. |
So....the official solution for running polymer 3 in windows is to actually to run it in Linux on windows? Is that for real? |
Does it work with gitbash or cygwin? |
Well I am heading down that road now. But I am not a linux user, nor a bash user so I have to spend some time becoming familiar. I have been developing Polymer apps for a couple of years now, super bummer to be thrown this curve ball on this recent version. Especially over what appears to be simply scripting issues in the CLI. I mean...why doesn't someone just you know... "fix" it? |
I am trying my best to follow the instructions on |
Here are my comments that are meant to be constructive for improving the win-10 instructions at the link above. Step 5: "Run the command "enable-WindowsOptionalFeature...." So I tried running git-bash as admin and then entered the curl command as listed in the doc. It says NVM is already installed and then spits out a whole slew of errors. Mostly unable to find a profile eg. Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile. So....this is pointless. There is only one inescapable truth here: It works on linux, so if you installed linux within windows then you can use it. I have been a big fan of polymer from v1 and convinced my client to switch to it for their front end development. Now we are expecting to produce our new apps in Polymer 3 ...but I guess we have to do it without the CLI. Big bummer. |
So instead of running nvm, I just ran "npm install node" which just worked. After that created a directory and tried "polymer init" which worked. So at least I am able to function at a minimum level. ...just another day lost to fighting with tools. :( |
Just had a another very sad thought. I am mostly writing polymer front ends that accompany this enterprise java app. All the code I submit gets built as a part of the build process for the whole app. The repository and the entire build process live in windows. They spin up a windows VM, deploy from the repo and run their build scripts. So....I am either going to have to submit the 'built' polymer app, or their build process is going to have to include steps to set up lss and bash? This is veering into the ridicules. Please can't someone provide a Polymer 3 CLI that runs natively in windows? Why change now? |
@chisholmd , There is an industry trends we can not beat. Moving to linux/unix is one of those. Instead of trying to keep multy-platform capabilities many select the most promising/beneficial environment and let adapters care of compatibility. GIT cli has chosen this way, I do not see why not to benefit from what is given and spend less effort on compatibility freeing the resources to productive side? I doubt there is any windows developer environment without git cli, meaning without git bash. Unless you are in so strict corporate environment where development in general almost impossible. I propose to close this ticket/thread as the way around has been given, and it is applicable in most environments. Better to publish the recommendation in docs on cli. |
Its a pity. Isn't this near the last version of this poly fill? Is Polymer 4 even contemplated? I get that these are free tools and on that account I have no cause to complain. But to drop support so suddenly and so unconsciously is a real probably for a bunch of us that came along for the ride. Just having bash on your development machine is only a small apart of the equation. There are organisations that now need to develop a new batch of skills, not in polymer, but in a new environment just to support this tool. It would probably be better for our organisation to just forgo the benefits of the CLI and to just write our own deployment script. A shame to lose the benefits of the advanced build features, but better then having to ask our dev ops team to add a linux subsystem to their build process. |
The only way I could get it to work was by using Git Bash instead of cmd. Hope this helps |
Hi , Simple solution is , install git bash to your machine.
And you are ready to go :) Thanks to @sashafirsov it worked. |
Opening Git Bash inside VSCode did not work for me strangely. However, when I opened the Git Bash terminal outside the VSCode and tried |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have created myapp directory and executed polymer init after installing cli. Selected " polymer-3-starter-kit - A Polymer 3.x starter application template, with navigation and "PRPL pattern" loading". It hangs after output
info: [init] Running template polymer-3-starter-kit...
Env
node v10.9.0
npm 6.2.0
Windows 10 pro.
The text was updated successfully, but these errors were encountered: