Missing / dist folder in Bower installation from Knockout 3.4.0 from Visual Studio 2015

I am currently using Visual Studio 2015 to work on a project that uses NPM / Bower to manage the dependencies of the Javascript package. One of the packages we use and install through Bower is knockout 3.4.0.

If I go to wwwroot / lib / knockout and delete the folder, VS Solution Explorer notices that the package is no longer installed under the node dependencies - if I then run Restore Packages from this menu, it tries to pull the knockout back to the lib directory.

However, every time he does this, he cannot load the / dist directory and the file inside it. If I do the same on the machine of my colleagues behind me (very similar build environments), VS 2015 will restore the package, including the / dist folder.

What am I doing wrong? I tried to clear the cache drive and reinstall, but got the same problems. Without / dist content, the application does not work.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\Bower.cmd" install --force-latest bower knockout#>=2.2 not-cached https://github.com/SteveSanderson/knockout.git#>=2.2 bower knockout#>=2.2 resolve https://github.com/SteveSanderson/knockout.git#>=2.2 bower knockout#>=2.2 checkout v3.4.0 bower knockout#>=2.2 resolved https://github.com/SteveSanderson/knockout.git#3.4.0 bower knockout#>=2.2 install knockout#3.4.0 
+6
source share
2 answers

I had this problem and it happened due to outdated packages in local bower cache.

I ran this command to clear the cache:

 bower cache clean knockout 

Then I was able to reinstall the knockout package without any problems.

Thanks,

Brian Gers

+4
source

This problem was apparently caused by our application considering knockouts instead of knockouts in Bower scripts

0
source

All Articles