Installing public package using `npm i curlconverter` results in `fatal: Could not read from remote repository` - npm

There already is an issue about this on github however the proposed solution does not solve the problem. I am also not knowledgeable enough to know if this is a bug in the library or not.
$ npm i curlconverter
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/NickCarneiro/yargs-ansi.git
npm ERR!
npm ERR! git#github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-05-17T14_07_32_675Z-debug.log
I am able to install curlconverter locally by installing an older version:
npm install --save yargs
npm install --save curlconverter#3.12.0
However if I do this in a Dockerfile it still errors:
Step 6/9 : RUN npm install --save curlconverter#3.12.0
---> Running in 2f5e6c7af7ce
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/NickCarneiro/yargs.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-05-17T14_06_02_821Z-debug.log
The command '/bin/sh -c npm install --save curlconverter#3.12.0' returned a non-zero code: 1
What is the problem here and is there any way to install and use the package?

Related

How can i solve npm error on install -g yarn?

i want to run this command and install yarn
npm install -g yarn
but i get this error
npm ERR! code ENOENT
npm ERR! syscall spawn bash
npm ERR! path C:\Users\DigiMax\AppData\Roaming\npm\node_modules\yarn
npm ERR! errno -4058
npm ERR! enoent spawn bash ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DigiMax\AppData\Local\npm-cache\_logs\2021-07-03T15_03_24_683Z-debug.log
how can i solve this problem?
The quickest solution is npm cache clean and npm cache verify works in most cases.
According to docs.npmjs you should check your npm version and update if needed or reinstall it at worst.
Please, let us know if it worked
This problem solve by "running VSCode as administrator"

why does sass & NPM stop working if I haven't changed anything?

I'm working on a site when my sass stopped working and NPM won't listen for changes!
npm ERR! errno -4058 npm ERR! enoent Error while executing: npm ERR!
enoent undefined ls-remote -h -t ssh://git#github.com/gulpjs/gulp.git
npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm
ERR! enoent This is related to npm not being able to find a file. npm
ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Symmetry
Thomas\AppData\Roaming\npm-cache\_logs\2020-12-12T16_13_40_508Z-debug.log
1- Try deleting node_modules directory entirely and run npm install.
2- Another solution could be running npm cache clean

Why can't I install these expo navigation dependencies?

I'm trying to run the commands listed here:
https://reactnavigation.org/docs/en/getting-started.html
I installed "navigation" itself correctly
But when I try the following command:
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context #react-native-community/masked-view
I get the following error:
Installing 5 SDK 36.0.0 compatible native modules using npm
> npm install
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
I've installed them before with no problem with other projects, so I don't know why this could be happening

how do you install native-base?

Here my errors with my commands.
Command i tried to execute:
npm install native-base --save
Here error output:
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/GeekyAnts/theme.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jaber\AppData\Roaming\npm-cache\_logs\2019-07-21T08_15_50_391Z-debug.log
First, install git on your system. Native Base need pull package from ssh://git#github.com/GeekyAnts/theme.git by git command.
Make sure your git location stay in system's path environment by using this command:
git --version

npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'

I am trying to install the latest mfpdev-cli version (8.0.2016062816) but I got the following error:
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "mfpdev-cli"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! path /usr/local/lib/node_modules/mdo-browser-support
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'
npm ERR! enoent
This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! anoint
Checking the repository, I was not able to find the mdo-* modules, this is the problem.
I also tried to install it through the .tar.gz file, but same error.
Is there a "workaround" on this issue?
Try :
sudo npm install -g mfpdev-cli#8.0.2016062416 --no-optional
Looks like newer builds have an issue.
Try to run the install with "sudo".
sudo npm install -g mfpdev-cli