How do you reference a NodeJS module in a Git subd...
# typescript
How do you reference a NodeJS module in a Git subdirectory with
? The only solution I’ve found so far seems to be switching to
at all. (see ->
Use-case: I’ve changed sth. to
where the module resides in the
subdirectory. Locally it works fine with
npm install ../
. But now I want to make it accessible for other before my (possible) contribution (may) get merged & released upstream. Therefore I want to deliver the changes in a company-internal fork. Then I get to the problem above:
npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t git://
npm ERR!
npm ERR! fatal: remote error:
npm ERR! ORG/pulumi-kubernetes/sdk/nodejs is not a valid repository name
npm ERR! Email for help
Could you publish the package to an internal repo or private npm org? Note: you would have to update the name and version. Also, you could create another repo that includes just the code in the nodejs folder at the root and it should work since node assumes that the package is at the root.
@future-barista-68134 I wanted to keep it as simple as possible. Didn’t publish to by myself. I might move the
folder to root in the fork. That way I hopefully can synch with upstream.
👍 1