I am attempting to install a package from a git repository that I had previously forked.
Here is the command I tried:
npm i catsaredoomed/invest-openapi-js-sdk --save-dev
Unfortunately, I encountered this error message:
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--also=dev` instead.
Even after trying different flags such as --save or removing it altogether, the error persisted. The suggested solution of using --also=dev
did not solve the issue either.
UPDATE: npm version is 6.14.13
UPDATE 2:
Strangely, npm now requires sudo permission to execute this command (even though I have never used sudo with npm before and all other packages were installed without it). Running the command with sudo led to a new error:
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/catsaredoomed/invest-openapi-js-sdk.git
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
It seems that even for a public repository, npm now demands a key.
UPDATE 3: NodeJS (with npm) was installed through sudo dnf as a Fedora module, while git was installed using the usual sudo dnf install method, nothing out of the ordinary.