bower support in visual studio 2012 [duplicate] - visual-studio-2012

This question already has answers here:
Not being able to run bower in VS 2012
(2 answers)
Closed 5 years ago.
I am trying to integrate angular-formly with visual studio 2012 and for that I did following steps:
Problem
Not able to integrate bower in Visual Studio 2012
So far approach taken
downloaded node.js and install bower using install -g bower.
from the project directory I installed angular-formly packages via
$ bower install angular api-check angular-formly --save
using requirejs I then plugged-in the generated .js files (inside bower_component folder) in my project.
I ran the project and I get following error.
Uncaught TypeError: Cannot read property 'version' of undefined (in formly.js)
Questions:
Is there some web plugin for Visual Studio 2012 to read and parse packages downloaded via bower.
I read some of the articles which suggests that bower support is provided VS-2013 onwards, does that mean in order to use bower I have to upgrade to VS-2013?
Thank you.

Bower has been pretty much discontinued meaning you probably should not be using it and using npm instead

Related

Update Node.js & Cordova in Visual Studio 2017

I'm trying to update nodejs and cordova.
In got the latest version of nodejs and installed it into c:\program files\nodejs
However there is some conflict when i try to install cordova
npm install -g cordova
Npm shows the version installed in visual studio and closes:
c:\ProgramData\Microsoft\VisualStudio\MDA\3614fb17\taco-toolset-6.3.1\node_modules
I tried most of the solution found on stackoverflow and many others on google nothing. manual change of the version in config.xml will simply crash the app and thats all.
How to update it?
Best solution as far.
I gave up on visual studio and using my good old Edit Plus IDE and using cordova in command line to build / run etc.

Ionic setup issues on Windows 7

I am trying to install Ionic on Windows 7 machine.
First, installed NodeJS 6.1.0, It went fine
Then, ran npm install -g cordova, Went fine
Then, ran npm install -g ionic, Got error related to Python.
Installed Python 2.7
Again, ran npm install -g ionic, Got error related to Microsoft .Net
Framework 2 SDK.
Updated npm to 3.8.9, Still getting error related to Microsoft .Net
Framework 2 SDK.
Are Python and Microsoft .Net SDK actually required? Nowhere I could find about this in the installation guides.
no python and .net SDK are not required
you need to download Android SDK in the case of developing for android.
you can download android studio and download SDK from SDK MANAGER or simply download android SDK. In my case, I download the android studio and then used the SDk manager to download the SDK's.
You can download it from here Android SDK
Also ou need to have JAVA jdk installed on your system and you have to set
PATH for both android sdk , java and nodejs
add PATH in system variables to environment variable
to
C:\Program Files\nodejs\
C:\Users**SystemName**\AppData\Local\Android\android-sdk\tools
C:\Users**SystemName**\AppData\Local\Android\android-sdk\platform-tools
C:\Program Files\Java\jdk1.7.0_79\bin
the above paths are according to my system. The SystemName may differ on your system else will be the same.
You also need to set User Variable jsut above your system variable:
ANDROID_HOME : C:\Users\SystemName\AppData\Local\Android\android-sdk
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_79
you may also need to install gradle using nodejs command
and add its user variable and system variable
like
GRADLE_HOME :C:\Program Files\gradle-2.9
same in system variable(i.e PATH)
But first of all you need to download Node.js
I tried v6.0.1 but it is not compatible for ionic 2 for now, so you can download v4.4.x or v5.x from Node js site(sorry dont have 10 repo poits to post the third link) for now and later use v6.0.x
now using nodejs command prompt you need to install npm http://blog.npmjs.org/post/85484771375/how-to-install-npm
after installing npm
install ionic 2 and cordova using
npm install -g ionic#beta cordova
now Ionic is installed on your system.
To start a new project
ionic start Myproject --v2
and if you want to start a ionic project using typescript
ionic start Myproject --v2 --ts
Now give command
cd Myproject
to go to the directory of your project
after that, to test your app use
ionic serve

Not being able to run bower in VS 2012

Since yesterday I have been trying to install and use bower for managing my dependencies. After going through many articles although I have been able to install it. I am not being able to run it. Beside many articles I also followed this video:
Bower running in Package Manager Console in Visual Studio install
As the video is in some other languages even though I followed all the commonds, I could not get
$env:path
After doing everything when I type bower in the Package manager console, it gives me error
Thanks in advance for helping me out.
PS: I have already installed npm and node.
In order to use Bower correctly in Windows, you need to install msysgit correctly. This is the requirement as specified in bower github https://github.com/bower/bower#a-note-for-windows-users.
The option you have to select during installation is Run Git from the Windows Command Prompt.
After successful installation. Restart Visual Studio and then you are good to go.
In my case, after installing msysgit, I installed bower using:
PM> Install-Package Bower
Above step automatically installed dependencies (node.js, jquery)
I also had to specify relative path to bower.cmd:
PM>.\MyProject.bin\bower.cmd install semantic-ui

Error in installing node.js module using npm

I am trying to install the following module using node.js, but keep on getting the following error. Do you have any suggestions on what I should do? So I am using windows 7 and have installed .NET Framework 2.0 SDK as well.
npm install execSync
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK,
2) install Microsoft Visual Studio 2005 or
3) add the location of the component to the system path if it is installed elsewhere.
You need to add VCBuild.exe to your path. Check out this answer on how to do it: Testacular install fails, no vcbuild.exe
The easiest way is to install a trial version of visual studio and run npm in the visual studio command prompt as administrator. Visual studio 2012 does the job.
npm install -g windows-build-tools
ran in an administration window and we will see:
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Waiting for installers... -Successfully installed Python 2.7
Waiting for installers... /Successfully installed Visual Studio Build Tools.
npm install --global --production windows-build-tools
will resolve 90% of the install issues in windows for node
This steps helped me a lot:
"According to the readme file in Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1, to ensure that your system has a supported configuration, uninstall the following products and then reinstall them in the order listed:"
1 - Visual C++ 2010 Express or Visual Studio 2010
2 - Windows SDK 7.1 Note: If you get error on installation, maybe this link will help you.
3 - Visual Studio 2010 SP1
4 - Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1
For me, only the step two was enough.
Pay attention in second step's note "Note: If you get error on installation, maybe this link will help you". I had problem and this tip was important.
For more information, this link can be useful: https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup
After trying various .Net and Visual I finally managed to get npm to load and build mongoose on Windows 8.1 by downloading Visual Studio 2013 Prof
ftp://ftp.microsoft.com/bussys/winsock/winsock2/qos.h
Interestingly, even after installing Visual Studio 2015 and adding the path to VCBuild.exe to Environment Variables -> PATH, this error was occuring when i tried to npm install. Restarting the machine didn't resolve the error. I tried starting the app using node app.js and it works!
This command will add necessary packages.
npm install --global --production windows-build-tools

Problems installing socket.io

I’m developing a program that requires Node.js and Socket.io. After attempting to install both, I found no inconvenience with “Node.js” but run into an error when inputting npm install socket.io in CMD:
C:\Users\otori\node_modules\socket.io\node_modules\socket.io-client\node_module s\ws\build\binding.sln : MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.
error code: error MSB3411
It would appear my node.js or my CMD cannot find VCBuild.exe and are asking for me to install VS2008, which I already have installed (I’ve also tried with VS 2010).
Any help or guidance is deeply appreciated, im using Windows 8 x64 and node.js v0.10.1
Sorry to dig up an old question, but your question is the first result when I searched for "Socket.io VCBuild"
The solution I found, after stumbling around was :
npm install socket.io --msvs_version=2012
or
npm install sqlite3 --msvs_version=auto

Resources