node version: 8.14 (need this specific version for my production environment)
npm version: 6.4.1
Full error message:
npm ERR! code ENOPACKAGEJSON npm ERR! package.json Non-registry package missing package.json: <dependency repo>@<company's Gitlab address>/<dependency repo>.git. npm ERR! package.json npm can't find a package.json file in your current directory.
What I’m trying to do:
npm install dependencies for the main project, but for some reason a dependency (another repo hosted on the company’s Gitlab) keeps saying that the dependency is missing a package.json even though there is a package.json on the root level of said repo. The weird part is, I can
git clone said dependency using the included path in the main project’s repo separately.
What I’ve tried:
sudo npm install just in case - doesn’t work
change protocol from https to ssh - doesn’t work
delete ~/.ssh/known_hosts to generate a new ssh key upon
npm install - doesn’t work
Is it possible for me to clone then manually put the repo’s content into the node_modules file, along with manually creating its .bin?