Closed feimosi closed 6 years ago
The same here with npm 5.1.0 and node 8.1.2 in Archlinux too.
Interesting. I‘ll investigate soon, probably can’t this week.
Pinging @1000ch to take a look if he has time.
I guess it is a permissions problem, i had the same problem, fixed it using a global folder in my home folder https://docs.npmjs.com/getting-started/fixing-npm-permissions
I confirm, that resolves the issue :+1:
I just wanted to mention that the issue does still exist.
This issue still exist, and it's blocking a lot of people from installing preact-cli, which I believe @slightlyoff and @owencm would not be very happy about ;)
https://github.com/developit/preact-cli/issues/191 https://github.com/developit/preact-cli/issues/406 https://github.com/developit/preact-cli/issues/424
Pinging @1000ch
This issue is most likely with the npm wrapper: https://github.com/1000ch/simplehttp2server
Thank to porfirioribeiro,
I confirm that resolve the issue for me.
I'm sorry, I don't understand - what resolved the issue?
I'm trying to install preact-cli
and getting this error during simplehttp2server@2.0.0 postinstall
...
To others looking for a solution, changing npm's default directory fixed it for me.
Switching my node version to 7.10 for the install worked for me.
I'm getting the following error when running
npm install -g simplehttp2server
:Tested on the latest versions of node (8.1.3) and npm (5.0.4). I'm running Arch Linux.