How to deal with polym-cli update on Ubuntu on Windows that doesn't work because of .git: Permission denied

I need a workaround to update the polymer-cli on an Ubuntu shell on Windows 10 that doesn't work because of "... git: Permission denied".

I am following this using the Ubuntu admin shell on Windows 10.

Everything is good before $ sudo npm install -g polymer-cli

, which gives:

npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/polymerelements/test-fixture.git /home/<USERNAME>/.npm/_cacache/tmp/git-clone-fe296ee9
npm ERR! /home/<USERNAME>/.npm/_cacache/tmp/git-clone-fe296ee9/.git: Permission denied

      

I found this npm issue that may or may not be native.

Thanks for the help.

+3


source to share


2 answers


I'm not sure what is causing this, but the workaround is to manually execute the command and try again:

sudo /usr/bin/git clone --depth=1 -q -b master git://github.com/polymerelements/test-fixture.git /home/<USERNAME>/.npm/_cacache/tmp/git-clone-<HEX DIGITS FROM ERROR MESSAGE>
sudo npm install -g polymer-cli

      



Unfortunately there were more permissions after that. So I had to install polymer-cli

to my local node_modules

app folder :

npm install polymer-cli
./node_modules/.bin/polymer --help

      

0


source


try yarn.



yarn global polymer additive-cli

-1


source







All Articles