7

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!

mattd
  • 543
  • 4
  • 16
  • Possible duplicate of [How to install a private NPM module without my own registry?](https://stackoverflow.com/questions/10386310/how-to-install-a-private-npm-module-without-my-own-registry) – SanSolo Dec 27 '18 at 18:14
  • No, not really. The problem is different and no solution worked. – mattd Dec 28 '18 at 08:26
  • Did anybody find a solution to the problem? I did not find one. – Freddy Dec 20 '21 at 15:23
  • I didn't. I solved calling directly the index.js file from a local folder containing all the source. – mattd Dec 21 '21 at 19:14
  • So anyone found anything? Sounds pretty weird that we still stuck on this. – Steve Moretz Mar 25 '22 at 22:19

0 Answers0