Closed Kezzsim closed 6 years ago
Please never use sudo
with npm, it leads to a world of pain 🙈
node-gyp
should have been installed together with your installation of Node.js, you shouldn't have to install that manually.
You also installed a package named rebuild
which I have no idea what it is. But that package is probably the one causing the security problems.
What OS are you running?
Oh,
I'm running High Sierra; and I seem to have gotten it to install correctly with npm install lame
after uninstalling rebuild which was a dependency of Optomist, a package which I am no longer using.
I can close the issue now, Thanks!
-Kb
So I was very excited to use this repository with icy to get PCM streams from icecast / shoutcast, and I was mainly thinking of using it as part of a redistributable open source package on npm because it bundled the codec which is great. The only difficulty I'm having is that presently when I attempt
sudo npm install lame
on my own system I'm presented with a host of problems I've never encountered before:Okay, so let me get this straight: sudo doesn't give me the permissions I need to make the build directory? I tried the same thing from a root user shell and got similar results.
in the same error prompt I also get this about two dependencies:
The best thing I could think of was to try and install both of those manually so I attempted
sudo npm install node-gyp rebuild
which according to NPM's internal security prompt was a little problematic:even after installing these dependencies I get the exact same error noted above.
Any ideas?
Thanks