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-cli global install error #2502
Comments
I have the same error on MacOS. npm -v: 5.3.0 Error message:
|
This issue is also report here https://github.com/Polymer/polymer-cli/issues/832. Can any of the admins check this? Thanks. |
As details in the NPM issue linked above, the problem is a regression in NPM and can be also worked around by setting |
Wired thing. After I posted my comment I wen't back home. Today I was able to install the cli tool globally without this option. Only thing I did is restart... Another Mac issue then? |
A. With or with out sudo? |
Closing per https://github.com/Polymer/polymer-cli/issues/832#issuecomment-320238339 Thanks again @guss77 ! |
I recently ran into this issue and what I can say that fixes it is to do |
I also encountered this issue with the latest npm (5.5.1) and was workarounded by adding |
Running |
Redic, just troubleshooted the same error. Can you guys (any packages makers), include a setup and getting started guide that works. How can we move forward if every step needs troubleshooting? |
+1 Same thing here. Luckily Google found the error message. |
|
|
I have the same problem. and I solved by changing npm's Default Directory. this is not the issue with polymer-cli, but of node and npm installation location. |
sudo npm install -g polymer-cli --unsafe-perm also worked for me. |
thanks |
sudo npm install -g polymer-cli --unsafe-perm also worked for me. |
Had the same problem installing polymer-cli on a linux hosted agent in VSTS. |
|
why I ever need to do --unsafe-perm on My latest Sierra? It it not so smart as it seems or MacOS support is finally dropped for node/npm developers? |
@hack2root you could use nvm ;) and you have all the permissons on the world to make polymer works |
sudo npm install -g polymer-cli --unsafe-perm also worked for me. |
Same error, fixed with: |
--unsafe-perm worked for me too |
Why is it closed? This issue is still in Polymer 3... The workaround works with --unsafe-perm worked for me as well. |
Because this isn't a problem with the |
Or - better yet, fix the problem in NPM itself, as documented here: npm/npm#17346 . Though by the fact that that bug report is "archived", there's a good indication that NPM maintainers don't intend to fix this problem and consider it "purposefully broken". Maybe someone would like to open a new bug report about this problem, I personally am no longer invested in the nodejs community, a lot because of attitudes demonstrated in the above linked NPM issue #17346, which is complete indifference to incorrect behavior that does not impact the developer own personal workstation. |
Or - better yet, fix the problem in NPM itself, as documented here: npm/npm#17346 . Though by the fact that the npm/npm repository is archived (with thousands of bugs still open), with development moved (unexplained) to another Github repository with no bug tracking - and developers are now expected to file bugs through a Discourse forum posting - all this is a good indication that NPM maintainers aren't really interested in fixing this and other bugs. Maybe someone would like to re-report this bug here: https://npm.community/c/bugs. I personally am no longer invested in the nodejs community, a lot because of attitudes demonstrated in the process described here: which is complete indifference to incorrect behavior that does not impact the developer own personal workstation (relegating bug reports to forum posts is basically saying that they don't care about bug reports). |
This seem to be the best solution (don't use this on production machine): |
The same error I also suffered in Windows 8.1 x86 32-bit. |
Error still exists and |
Using the option |
node 13.7.0 --unsafe-perm still seems to work |
|
Npm: 6.14.4 |
Description
npm error when running
npm install -g polymer-cli
as root.This is done in CI process in a Docker container.
Versions & Environment
Steps to Reproduce
To reproduce, build this Dockerfile:
Expected Results
NPM should install polymer-cli without an error.
Actual Results
We get an error in the output and the installation exists with error code 1:
The log file mentioned in the output says:
Workarounds:
Using
node:6
as the base image, works out fine.The text was updated successfully, but these errors were encountered: