Install NPM package globally from a private repository

Viewed 1090

I have the following package: react-native-rename

The project, inside package.json, has an alias that launches the index.js file.

I forked the repository and uploaded on my private GitLab.

Now, I want to install it globally in my environment. If I do:

npm install -g react-native-rename

it works perfectly and I can call react-native-rename from command line. I can see the package installed correctly in the global npm folder.

If I do:

npm install -g git+ssh://git@git.company.info:mobile/react-native-rename.git

nothing works. Package is not installed and script cannot be called. Also, this package for some unknown reasons doesn't install without global option.

Any idea about to solve this issue?

Thanks!

0 Answers
Related