Why do most tutorials tell you to install some package or tool globally via npm ?
Tuesday, November 24, 2020
I was told to install ngrok via npm globally :
npm install -g ngrok
I was doing this on my macOS Mojave
It failed because of permissions error. Then I did :
sudo npm install -g ngrok
I got errors apparently not related to npm. So it still failed.
npm ERR! Failed at the firstname.lastname@example.org postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I didn't know what to do. Searched everywhere on Google (StackOverflow) etc but still couldn't solve it. So many posts about chown etc.
I then finally did what the documentation said. Download the zip file which just contained a single ngrok executable file.
Ran ./ngrok http 3000 in terminal and all is okay now !
... I mean, wasn't downloading the zip and running the executable the was easiest way ? All this trouble to do only via npm.
Get Packers and Movers Jaipur List of Top Reliable, 100% Affordable, Verified and Secured Service Provider. Get Free ###Packers and Movers Jaipur Price Quotation instantly and Save Cost and Time. Packers and Movers Jaipur ✔✔✔Reviews and Compare Charges for household Shifting, Home/Office Relocation, ***Car Transportation, Pet Relocation, Bike SHifting @ Packers And Movers Jaipur
Hire Best Packers And Movers Mumbai for hassle-free Household Shifting, ***Office Relocation, ###Car Transporation, Loading Unloading, packing Unpacking at affordable ✔✔✔Price Quotation. Top Rated, Safe and Secure Service Providers who can help you with 24x7 and make sure a Untroubled Relocation Services at Cheapest/Lowest Rate @ Packers and Movers Mumbai
Packers and Movers Ahmedabad - We Provide ***Best Service Providers, Safe, Reliable, Affordable, Trusted ###Movers and Packers in Ahmedabad List, Household Shifting, Office Relocation: Choose Top Verified Packers and Movers Ahmedabad Compare ✔✔✔Shifting Service Chrages, Price Quotation, Rate List Charts and Save Money and Time @ Packers and Movers Ahmedabad
Post a Comment