I can't install AngularJs in Visual Studio

Rin 0 Reputation points
2024-08-27T06:46:50.94+00:00

Hello, I'm having a problem with installing AngularJs in VS. When I tried to search for it in the NuGet package manager and browse for it, it says No packages found and the package source is in Microsoft Visual Offline Packages.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Gowtham CP 4,745 Reputation points
    2024-08-27T07:25:09.4+00:00

    Hello Rin,

    Thanks for reaching out on Microsoft Q and A!

    You won’t find AngularJS in Visual Studio’s NuGet package manager because it’s a client-side JavaScript library.Instead, you have two good options:

    1. Download Manually: Visit the AngularJS website, download the angular.js file, and add it to your project. Just include it in your HTML file, and you’re good to go.
    2. Use npm: For a more modern approach, install Node.js if you don’t have it yet, then run npm install angular in your terminal. You can then link to AngularJS from your node_modules folder in your HTML.

    If you're using Visual Studio Code, it has handy AngularJS extensions to make development easier. And if you're starting fresh, you might want to explore the latest Angular framework for more up-to-date features and active community support! I hope this makes it clearer!

    If you found this helpful, please accept this answer and upvote. Thanks!

    0 comments No comments

  2. Anna Xiu-MSFT 28,661 Reputation points Microsoft Vendor
    2024-08-28T06:36:57.6+00:00

    Hi @Rin, 

    Welcome to Microsoft Q&A! 

    You need to first install the npm package manager:

    https://www.npmjs.com/package/npm 

    Then, refer to the following link to install Angular CLI using the npm package manager.

    https://angular.io/cli 

    If you need to create an Angular app in Visual Studio, please see the documentation:

    Create an Angular app in Visual Studio - Visual Studio (Windows) | Microsoft Learn 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.