Npm err code e404 как исправить

Using the command prompt, I am trying to install angular CLI and it fails. I have npm version 5.5.1 and node version v8.9.1. I am trying to install angular cli using the command

npm install -g @angular/cli@latest

and it fails with the error:

npm ERR! code E404
npm ERR! 404 Not Found: @angular/cli@latest
npm ERR! A complete log of this run can be found in:

I look at the log file and I see its trying to fetch the package from a location that doesn’t exist. Not sure from where it gets pulled. How do I fix this location path and install angular cli. Same happens when I try to install typescript or any other npm package. all of them try to install from the location mentioned below and it fails with 404

8 http fetch GET 404 
       http://nuget.feed.xyz.corp:8729/npm/FeedNPM/@angular%2fcli 109ms
9 silly fetchPackageMetaData error for @angular/cli@latest 404 Not Found: 
     @angular/cli@latest
10 verbose stack Error: 404 Not Found: @angular/cli@latest

asked Nov 27, 2017 at 21:34

theandroid's user avatar

theandroidtheandroid

7791 gold badge5 silver badges13 bronze badges

3

npm config set registry http://registry.npmjs.org

NPM registry documentation

Community's user avatar

answered Nov 27, 2017 at 23:36

Matt's user avatar

MattMatt

1,0386 silver badges10 bronze badges

3

Try first this commands (in windows run as administrator)

npm config set registry http://registry.npmjs.org
npm install -g @angular/cli

if still not working let’s update NPM and nodejs by running this commands

npm -g install npm
npm cache clean -f
npm install -g n

then try to run

npm install -g @angular/cli

This should solve this problem

answered Aug 6, 2020 at 11:36

Atul Baldaniya's user avatar

2

in my case it was .npmrc file in my project dir, which kept overwriting my global registry url. As soon as I deleted it, I could finally use npm install

answered Feb 3, 2019 at 19:14

Alexus's user avatar

AlexusAlexus

1,8471 gold badge23 silver badges48 bronze badges

2

Add a .npmrc file in the root of the project. .npmrc will look like below —

@xy:registry=https://xyz.jfrog.io/xyz/api/npm/npm-local/
@xy-app:registry=https://xyz.jfrog.io/xyz/api/npm/npm-local/

And Delete all the field eg — email , auth etc.
Find out what is the registry url of your application and put it into the registry.

Then run command — npm install
And it will work.

answered Aug 5, 2020 at 9:25

nick's user avatar

nicknick

4254 silver badges12 bronze badges

It was giving the same error for me when I use office network/vpn as they have ‘umbrella’ DNS security shield. To solve this issue, connect to personal network and type the below commands:

    npm config set registry http://registry.npmjs.org
    npm install -g @angular/cli

answered Sep 23, 2019 at 16:52

Abhay's user avatar

AbhayAbhay

1611 silver badge4 bronze badges

Alternative, another option to avoid 404 npm error

check if your terminal is in the root directory, if not your npm scripts will not execute
because it will not be able to see the package.json

answered Sep 26, 2019 at 15:03

Niyongabo Eric's user avatar

I spent hours on this.

I had to follow the below steps to get it to work (mac).

Delete my LOCAL (not project) .npmrc by running:

rm /Users/<NAME>/.npmrc

Then set the registry:

npm config set registry https://registry.npmjs.org/

Then follow the steps for logging in to npm:

npm login

Check what’s in your config list by running:

npm config list

It should look like this:

//registry.npmjs.org/:_authToken = (protected)
registry = "https://registry.npmjs.org/"

Hope it works for you too.

answered Jul 4, 2022 at 16:01

Harry Riley's user avatar

I had same problem with a private package.
Need to:

  • npm adduser
  • npm login

Cabezas's user avatar

Cabezas

9,0797 gold badges67 silver badges69 bronze badges

answered May 28, 2019 at 8:40

Ronen's user avatar

RonenRonen

8051 gold badge12 silver badges33 bronze badges

  1. change your access level to public. type this in the terminal
npm --access=public
  1. install your angular.
sudo npm install @ngular/cli

IlGala's user avatar

IlGala

3,3114 gold badges35 silver badges49 bronze badges

answered Oct 4, 2019 at 2:56

solomon tekie's user avatar

In my case, that’s a typo error:
change trct-js-sdk to trtc-js-sdk saved my life.

answered Jul 14, 2020 at 9:22

NOZUONOHIGH's user avatar

NOZUONOHIGHNOZUONOHIGH

1,8521 gold badge20 silver badges20 bronze badges

My solution was as follows because I had a dependency on a private package. If you see the dependency in package.json defined in the format @scope/package, then @scope tells you that it’s a scoped package that might be private.

  1. Get the private package owner to grant you access to the package
  2. Upgrade npm
  3. Upgrade node
  4. Add registry using HTTPS (not HTTP), e.g. npm config set registry https://registry.npmjs.org
  5. Do «npm login»
  6. Now run the build

answered Apr 8, 2022 at 0:52

Puneet Lamba's user avatar

Uninstall NPM & nodejs and install the right way NPM (Ubuntu)

sudo with npm is not recommended

To Uninstall

sudo apt-get remove nodejs
sudo apt-get remove npm

or

sudo apt-get purge nodejs
  1. Followed by proper installation

curl -o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

  1. To confirm open a new terminal run:

$ command -v nvm

  1. Latest LTS release of NodeJS:

$ nvm install —lts

  1. Set default environment

$ nvm alias default lts/*

answered Jun 5, 2022 at 16:26

Ndiklas's user avatar

NdiklasNdiklas

771 silver badge6 bronze badges

Worked for me

I got

error 404 ‘dotnev@*’ is not in this registry.

Deleted .npmrc file in 2 folders back over my project root
and then in the project root folder typed:

npm i dotenv

copied from:
https://www.npmjs.com/package/dotenv

Lee Taylor's user avatar

Lee Taylor

7,71816 gold badges33 silver badges49 bronze badges

answered Jun 5, 2022 at 4:43

Shamir's user avatar

Just run sudo npm config set registry http://registry.npmjs.org and then update your npm.

answered Feb 6 at 20:45

Hamdollah Hoseinpour's user avatar

I had the same problem. What did I do?

First I deleted the .npmrc file in home/user

  • ls -a
  • sudo rm .npmrc

Then I downgraded my npm to a lower version

  • npm install -g npm@8.19.4

Then in my application I deleted the node_module package and runned the npm install.

Tyler2P's user avatar

Tyler2P

2,30424 gold badges22 silver badges31 bronze badges

answered May 2 at 21:42

Marcos Silva's user avatar

When I looked for .npmrc in home folder I couldn’t find it.

But and after running:

$ npm config set registry http://registry.npmjs.org

This fixed my problem.

Parking Master's user avatar

answered May 15 at 10:39

Abdelellah Dandashi's user avatar

It is an network error , check your network connection and try to install it again.

answered Mar 6, 2020 at 11:20

kajal 's user avatar

the only command line «npm -g install npm» solved the issue for me!
the following link can be helpful to dig deep for a better understanding.
Thanks a lot.

answered Sep 23, 2020 at 12:31

Hassan Braim's user avatar

1

Не знаю почему, но решил обновить npm — стало выводить вот такую ошибку

npm ERR! code E404
npm ERR! 404 Not Found — GET https://registry.npmjs.org/nodejs-speech-master — Not found
npm ERR! 404
npm ERR! 404 ‘nodejs-speech-master@^3.6.0’ is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-20T13_44_26_783Z-debug.log

Describe the bug

Below error comes when creating new project

C:Personalweb-projectsReact>npx create-react-app pomodoro-clock
npx: installed 99 in 16.973s

Creating a new React app in C:Personalweb-projectsReactpomodoro-clock.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404  'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

When I try to go to https://registry.npmjs.org/error-ex it returns a 404
Same issue when using command npm init react-app my-app

Did you try recovering your dependencies?

Yes

Environment

Environment Info:

  current version of create-react-app: 3.3.1
  running from C:UsersusernameAppDataRoamingnpm-cache_npx21236node_modulescreate-react-app

  System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 12.13.1 - C:Program Filesnodejsnode.EXE
    Yarn: Not Found
    npm: 6.13.7 - C:Program Filesnodejsnpm.CMD
  Browsers:
    Edge: 44.17763.831.0
    Internet Explorer: 11.0.17763.771
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

  1. Create new project with npx create-react-app project-name. Last created a project successfully last week using the same PC

Post Views: 24,894

ERROR

While working with command npm install you might be facing the 404 issues as given in below screenshot.

Solution

inside your PCF folder run the commands.

STEP 1 : run below commands to solve this issue.

npm config set registry http://registry.npmjs.org

STEP 2 : run below command next

npm -g install npm

STEP 3 : run below command next

npm cache clean -f

Now you can run npm start.

Answer by Miguel Shields

They’ve fixed the issue but we need to wait for CDN world propagation.,As you can see on https://status.npmjs.org, 4 packages are down at this moment.,This should work now. They have fixed it. I have tried it now and working

Then in cmd (go to the correct path of boilerplate-express app) and then use:

npm init -y

Answer by Annalise Farmer

Sponsor

Sponsor facebook/create-react-app

,https://registry.npmjs.org/error-ex returns 404 error.,The 404 error is fixed now. Hence closing the most commented issue in create-react-app ?

C:Personalweb-projectsReact>npx create-react-app pomodoro-clock
npx: installed 99 in 16.973s

Creating a new React app in C:Personalweb-projectsReactpomodoro-clock.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404  'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Answer by Alma Shaffer

Below error comes when creating new project,Create new project with npx create-react-app project-name. Last created a project successfully last week using the same PC,Paste the output of the command in the section below.
—>

<!—
Please note that your issue will be fixed much faster if you spend about
half an hour preparing it, including the exact reproduction steps and a demo.

If you're in a hurry or don't feel confident, it's fine to report bugs with
less details, but this makes it less likely they'll get fixed soon.

In either case, please use this template and fill in as many fields below as you can.

Note that we don't provide help for webpack questions after ejecting.
You can find webpack docs at https://webpack.js.org/.

Below error comes when creating new project

C:Personalweb-projectsReact>npx create-react-app pomodoro-clock
npx: installed 99 in 16.973s

Creating a new React app in C:Personalweb-projectsReactpomodoro-clock.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404  'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

<!—
Your module tree might be corrupted, and that might be causing the issues.
Let’s try to recover it. First, delete these files and folders in your project:

* node_modules
* package-lock.json
* yarn.lock

If you decided to use npm, run this in your project directory:

npm install -g [email protected]
npm install

If you decided to use yarn, update it first (https://yarnpkg.com/en/docs/install).
Then run in your project directory:

yarn

Paste the output of the command in the section below.
—>

Environment Info:

  current version of create-react-app: 3.3.1
  running from C:UsersusernameAppDataRoamingnpm-cache_npx21236node_modulescreate-react-app

  System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 12.13.1 - C:Program Filesnodejsnode.EXE
    Yarn: Not Found
    npm: 6.13.7 - C:Program Filesnodejsnpm.CMD
  Browsers:
    Edge: 44.17763.831.0
    Internet Explorer: 11.0.17763.771
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Answer by Christina Madden

I got the same error in Egypt now
npm ERR! 404 Not Found — GET https://registry.npmjs.org/error-ex,https://github.com/npm/npm-registry-couchapp,https://skimdb.npmjs.com/registry

Below error comes when creating new project

C:Personalweb-projectsReact>npx create-react-app pomodoro-clock
npx: installed 99 in 16.973s

Creating a new React app in C:Personalweb-projectsReactpomodoro-clock.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404  '[email protected]^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Environment

Environment Info:

  current version of create-react-app: 3.3.1
  running from C:UsersusernameAppDataRoamingnpm-cache_npx21236node_modulescreate-react-app

  System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 12.13.1 - C:Program Filesnodejsnode.EXE
    Yarn: Not Found
    npm: 6.13.7 - C:Program Filesnodejsnpm.CMD
  Browsers:
    Edge: 44.17763.831.0
    Internet Explorer: 11.0.17763.771
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Answer by Maxwell Ware

No compatible version found,Broken npm installation,Log in at https://npmjs.com/

npm ERR! Error: ENOSPC, write

Answer by Alaric Li

npm ERR! code E404
npm ERR! 404 Not Found — GET http://registry.npmjs.org/express
npm ERR! 404
npm ERR! 404 ‘[email protected]’ is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.,npm ERR! code ERR_OSSL_PEM_NO_START_LINE
npm ERR! errno ERR_OSSL_PEM_NO_START_LINE
npm ERR! request to https://registry.npmjs.org/express failed, reason: error:0909006C:PEM routines:get_name:no start line
@shadowspawn,npm ERR! A complete log of this run can be found in:

can you help me please, i have this error in terminal :
/usr/local/bin/npm: line 2: syntax error near unexpected token ;' /usr/local/bin/npm: line 2:;(function () { // wrapper in case were in module_context mode’
Thank You

;' /usr/local/bin/npm: line 2:

Answer by Celine Baker

More Details Refer


Answer by Jameson Pittman

As you can see on https://status.npmjs.org, 4 packages are down at this moment.,Don’t update your packages or install new one to fix this.,They’ve fixed the issue but we need to wait for CDN world propagation.

As you can see on https://status.npmjs.org, 4 packages are down at this moment.

https://status.npmjs.org

Answer by Judah Benjamin

https://registry.npmjs.org/error-ex returns 404 error.,npm ERR! 404 ‘error-stack-parser@^2.0.0’ is not in the npm registry.,Create new project with npx create-react-app project-name. Last created a project successfully last week using the same PC

Below error comes when creating new project

C:Personalweb-projectsReact>npx create-react-app pomodoro-clock
npx: installed 99 in 16.973s

Creating a new React app in C:Personalweb-projectsReactpomodoro-clock.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404  'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Environment

Environment Info:

  current version of create-react-app: 3.3.1
  running from C:UsersusernameAppDataRoamingnpm-cache_npx21236node_modulescreate-react-app

  System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 12.13.1 - C:Program Filesnodejsnode.EXE
    Yarn: Not Found
    npm: 6.13.7 - C:Program Filesnodejsnpm.CMD
  Browsers:
    Edge: 44.17763.831.0
    Internet Explorer: 11.0.17763.771
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Answer by Edgar Watkins

To avoid our errors, I suggest you to follow this checklist when you are facing a npm ERR! 404 and you can’t fix it:,This solution says that we have to configure the npm registry:,Blinded from this suggestion, we try miserably a custom link for the registry:

On my Linux Ubuntu 20.4 instance with WSL (Windows Subsystem for Linux) for Ubuntu 20.4, I can run without any problem the installation command after npm login:

npm loginsudo npm i -g -D @organizationName/cli

But my colleague is getting the following error on his Linux Debian 10 machine:

sudo npm i -g -D @organizationName/clinpm ERR! code E404npm ERR! 404 Not Found - GET https://registry.npmjs.org/@organizationName%2fcli - Not foundnpm ERR! 404npm ERR! 404  '@organizationName/cli@*' is not in the npm registry.npm ERR! 404 You should bug the author to publish it (or use the name yourself!)npm ERR! 404npm ERR! 404 Note that you can also install from a npmERR! 404 tarball, folder, http url, or git url.npm ERR! A complete log of this run can be found in:npm ERR!     /root/.npm/_logs/2021-02-19T18_05_38_311Z-debug.log

So, we update it on his Debian machine:

npm install [email protected] -g

But, when trying to run the command again…

sudo npm i -g -D @organizationName/clinpm ERR! code E404

This solution says that we have to configure the npm registry:

npm config set registry http://registry.npmjs.org

Blinded from this suggestion, we try miserably a custom link for the registry:

npm config set registry https://npm.organizationName.io/usrNameHere/

Now, the registry is a mess, let’s go back to the default version (yes, again):

npm config set registry http://registry.npmjs.org

After hours of desperation, my colleague deletes the .npmrc file (it’s not visible with a simple ls) in his /home/colleagueName/ directory:

rm /home/colleagueName/.npmrc

Понравилась статья? Поделить с друзьями:

Не пропустите также:

  • Как найти представление прокуратуры
  • Opengl что это за ошибка как исправить
  • Как найти фоновые приложения на хонор
  • Как найти дтс в выкройке
  • Как найти точку пересечения прямой с плоскостью

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии