Error While installing any libraries in node in MACOS

Discussão em 'Angular' iniciado por Aman chandel, Março 15, 2025.

  1. Aman chandel

    Aman chandel Guest

    I tried installing Typescript, Angular in npm, as I have also installed node.js from website and checked all the registry but it is still not working. Any suggestions are welcome.

    % npm install -f @angular/cli

    npm ERR! code ENOTFOUND
    npm ERR! syscall getaddrinfo
    npm ERR! errno ENOTFOUND
    npm ERR! network request to https://registry.npmjs.org/typescript failed, reason: getaddrinfo ENOTFOUND proxyname
    npm ERR! network This is a problem related to network connectivity.
    npm ERR! network In most cases you are behind a proxy or have bad network settings.
    npm ERR! network
    npm ERR! network If you are behind a proxy, please make sure that the
    npm ERR! network 'proxy' config is set properly. See: 'npm help config'

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/amandeep/.npm/_logs/2021-11-25T09_23_23_706Z-debug.log


    -----after running. the downloaded ------
    An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
    Require stack:
    - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
    - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js
    - /usr/local/lib/node_modules/@angular/cli/models/architect-command.js
    - /usr/local/lib/node_modules/@angular/cli/commands/serve-impl.js
    - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js
    - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js
    - /usr/local/lib/node_modules/@angular/cli/utilities/json-schema.js
    - /usr/local/lib/node_modules/@angular/cli/models/command-runner.js
    - /usr/local/lib/node_modules/@angular/cli/lib/cli/index.js
    - /usr/local/lib/node_modules/@angular/cli/lib/init.js
    See "/private/var/folders/13/zj_h6wvj4cl_l9q7zzs97b8c0000gn/T/ng-S5Rfen/angular-errors.log" for further details.

    Continue reading...

Compartilhe esta Página