So if anyone else runs in to this. You can log in to the server as root and then install the global package. That was the only way I could get it to install. Then you can sudo run it from there.
Sep 2, 2022
2
Level 9
Forge global npm package install error
Has anyone ran in to this? Fresh server 20.04 and trying to install a package globally
forge@myserver:~/node_modules$ sudo npm install -g @soketi/soketi
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects clone -b v20.10.0 ssh://[email protected]/uNetworking/uWebSockets.js.git /root/.npm/_cacache/tmp/git-clonewh4N3d --recurse-submodules --depth=1
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clonewh4N3d': Permission denied
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-09-02T14_57_31_533Z-debug-0.log
Level 9
Please or to participate in this conversation.