Skip to content

Latest commit

 

History

History
173 lines (120 loc) · 4.94 KB

File metadata and controls

173 lines (120 loc) · 4.94 KB

AngularJS

Endless Lifecycle Support (ELS) for AngularJS from TuxCare provides security fixes for AngularJS versions that have reached their end of life. This allows you to continue running AngularJS applications without vulnerability concerns, even after official support has ended.

Supported AngularJS Versions

  • AngularJS 1.4.4, 1.5.11, 1.6.10, 1.7.9, 1.8.2, 1.8.3

Installation

  • npm package manager installed
  • TuxCare registry token — contact sales@tuxcare.com
  • To browse available artifacts, visit TuxCare Nexus and click Sign in in the top right corner. You may need to refresh the page after logging in.
  1. Navigate to the project root directory

    Example structure:

    my-angularjs-project/
    ├── node_modules/
    ├── package.json
    ├── .npmrc         ⚠️ ← Create it here
    └── package-lock.json
    
  2. Configure the npm registry

    Create or update the .npmrc file in your project root:

    registry=https://registry.npmjs.org/
    @els-angularjs:registry=https://nexus.repo.tuxcare.com/repository/els_angularjs/
    //nexus.repo.tuxcare.com/repository/els_angularjs/:_auth=${TOKEN}
    

    :::warning Replace ${TOKEN} with the token you received from sales@tuxcare.com. :::

  3. Update dependencies

    Manually update your package.json file by replacing AngularJS dependencies with TuxCare-maintained packages.

    <template #AngularJS_1.4.4>

    "dependencies": {
        "angular": "npm:@els-angularjs/angular@>=1.4.4-tuxcare.1"
    },
    "overrides": {
        "angular@1.4.4": "npm:@els-angularjs/angular@>=1.4.4-tuxcare.1"
    }
    

    <template #AngularJS_1.5.11>

    "dependencies": {
        "angular": "npm:@els-angularjs/angular@>=1.5.11-tuxcare.1"
    },
    "overrides": {
        "angular@1.5.11": "npm:@els-angularjs/angular@>=1.5.11-tuxcare.1"
    }
    

    <template #AngularJS_1.6.10>

    "dependencies": {
        "angular": "npm:@els-angularjs/angular@>=1.6.10-tuxcare.1"
    },
    "overrides": {
        "angular@1.6.10": "npm:@els-angularjs/angular@>=1.6.10-tuxcare.1"
    }
    

    <template #AngularJS_1.7.9>

    "dependencies": {
        "angular": "npm:@els-angularjs/angular@>=1.7.9-tuxcare.1"
    },
    "overrides": {
        "angular@1.7.9": "npm:@els-angularjs/angular@>=1.7.9-tuxcare.1"
    }
    

    <template #AngularJS_1.8.2>

    "dependencies": {
        "angular": "npm:@els-angularjs/angular@>=1.8.2-tuxcare.1"
    },
    "overrides": {
        "angular@1.8.2": "npm:@els-angularjs/angular@>=1.8.2-tuxcare.1"
    }
    

    <template #AngularJS_1.8.3>

    "dependencies": {
        "angular": "npm:@els-angularjs/angular@>=1.8.3-tuxcare.1"
    },
    "overrides": {
        "angular@1.8.3": "npm:@els-angularjs/angular@>=1.8.3-tuxcare.1"
    }
    
  4. Clean and install

    Remove node_modules, package-lock.json, and clear the npm cache:

    rm -rf node_modules package-lock.json && npm cache clean --force
    

    Install dependencies:

    npm install
    

    The token for the TuxCare repository is automatically picked up from your .npmrc file.

  5. Verify the setup

    Use npm to list the project's dependencies and confirm TuxCare packages are resolved correctly:

    npm list
    

    After reviewing the dependencies, run your application to ensure everything works correctly. The npm tool should be able to identify and resolve dependencies from the TuxCare ELS for AngularJS repository.

What's Next?