Recently I updated to Cordova Tools version 6 for Visual Studio I am now getting this error. Anytime I try to build my solution.
: BLD00401 : Could not find module 'C:\Users\[User]\AppData\Roaming\npm\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
I have tried to follow this guide to reinstall vs-tac but no dice.
https://msdn.microsoft.com/library/dn771551%20(v=vs.140).aspx#vstac
http://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/#vstac
Thanks for any help in advance
Update:
a possible workaround belowMany thanks to the MS team >see answer for fix until Update 7Update 7 is/has been released and resolves this issue (spaces in path)
Not an answer - more like an "inventory" of attempts at getting to one.
Environment:
Errors
In any Cordova Project - existing, new (blank template, ionic template), etc.
Attempts
vs-tac
(from originalProgram Files
) to the folder in the error, does not resolve the issue. Each time you build your project, that copied folder is cleared/removedvs-tac
does not resolve the issuePossible culpritThis IS the culprit:space
in pathInspecting
Output window
points to what could be the issue (detail below):vs-tac
is being installed:'C:\Users\Ed' is not recognized as an internal or external command, (TaskId:10)
which is the (my)
Users
folder and it contains aspace
between my first and last name.So now in search of some fix (likely must come from Microsoft)...will update as necessary
Update:
This is a workaround, NOT a fixSee aboveAfter more tinkering, the issue is the
space
in your Windows User name. So if your users folder looks something like thisc\users\firstName lastName\
you will be affected by this bug.Here's the portion where
vs-tac
is successfully installed, now with a username with no spaces (edsf)This appears to be a bug that we introduced in Update 6 that causes npm install errors if the path to your npm install directory (usually in your AppData folder) has a space in the path. The simple workaround is to change your npm install directory:
npm config set prefix "C:\Folder\With\No\Spaces"
And then build again in VS. We will get this fixed up and released in Update 7 as soon as we can.
Sorry for the inconvenience.
I'd the same issue here. In my computer I'd to copy app.js from another folder:
I know this is not a good solution, but worked for me.
But in another computer here, I reinstalled with this command and worked (I closed VS prior to run this command, and started a new project):
Hope these notes can help you out.