I'm just going to throw all this out there and hope SO can help..
My situation is that I need to
npm install -s from a Visual Studio Online hosted git repo. I have seen how to do this from github and bitbucket. I guessed that the process would be the same but when I run npm install, nothing happens. I expected that at a minimum, the index.js, the readme.md and the package.json would be pulled.
I created a simple repo at
this project contains these files:
What am I missing?
Steps for Https:
npm install git+https://test:[personal access token]@[account name].visualstudio.com/[team project]/_git/[repository].
Steps for SSH:
git clonewith ssh to do test to make sure the SSH key works fine
npm install git+[ssh address].
Note: Tested with 3.10.10 (npm -v)
After researching, I discovered that the quickest way to accomplish what I wanted was to create a feed. I just followed the MS documentation on how to do this.
*Note: I had an issue when following the instructions linked here. I kept getting an unauthorized error. It took me a while, but I found out that when running the command
vsts-npm-auth -config .npmrc, my .npmrc file was not being created locally, but on a shared drive. when I moved that file to
c:/users/<yourself>/ it worked as expected.