Esprima error 404 Not Found in npm install - reactjs

I'm trying to install all dependencies in my react project, but when I run npm install I'm getting some errors related to esprima:
npm ERR! 404 Not Found - GET https://codeload.github.com/ariya/esprima/legacy.tar.gz/master
npm ERR! npm ERR! 404
npm ERR! npm ERR! 404 'esprima#https://github.com/ariya/esprima/tarball/master' is not in the npm registry.
npm ERR! npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! npm ERR! 404
npm ERR! npm ERR! 404 Note that you can also install from a
npm ERR! npm ERR! 404 tarball, folder, http url, or git url.
Did anyone experience this error?

I was able to resolve this issue after downgrade my npm version from 7.14.0 to v6.14.13. It may not be the best solution, but it was the only way I could get rid of this problem.

Related

Unable to create react set up on macbook m1

I am unable to create a react app on mac m1 . I don't know how to proceed with the following problem.
prateekshukla#iamkeetarp shopping-app % npx create-react-app-frontend
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-react-app-frontend - Not found
npm ERR! 404
npm ERR! 404 'create-react-app-frontend#latest' is not in this 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! /Users/prateekshukla/.npm/_logs/2022-03-06T14_38_24_143Z-debug-0.log
You're trying to use a package that does not exist :
GET https://registry.npmjs.org/create-react-app-frontend - Not found
The package you are looking for is create-react-app (no -frontend).
So what you should write is:
npx create-react-app my-app
Check out React's documentation for more info.

npm ERR! code E404 when installing Expo Tracking Transparency

expo install expo-tracking-transparency
Installing 1 other package using npm.
npm install --save expo-tracking-transparency
npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/expo-tracking-transparency - Not found
npm ERR! 404
npm ERR! 404 'expo-tracking-transparency#latest' 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 exited with non-zero code: 1

Trying to Setup ReactJs getting error while installing web pack & bable

The error is as follows. Any comments are welcome.
npm ERR! code E404 npm ERR! 404 Not Found - GET
https://registry.npmjs.org/bable-preset-react - Not found npm ERR! 404
npm ERR! 404 'bable-preset-react#latest' 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!
C:\Users\Vamsi S
Krishna\AppData\Roaming\npm-cache_logs\2020-01-19T17_52_52_549Z-debug.log
It should be https://registry.npmjs.org/babel-preset-react ! Babel, not Bable!

Angular 2 Quickstart install failing via npm (Link - https://angular.io/docs/js/latest/quickstart.html)

As given in the link I've been trying to get Angular 2 running on my Ubuntu 15.10 machine but I get the following error messages and the install fails.
I also tried to install Angular 2 via the npm package command, that is sudo npm install angular2#2.0.0-alpha.32 but this gave the same sort of errors.
Any help would be appreciated. Thank you.
Here are the errors. The log it mentions at the bottom can't be posted here because it is over a 1000 lines.
sudo npm install
npm WARN package.json angular2-quickstart#1.0.0 No description
npm WARN package.json angular2-quickstart#1.0.0 No repository field.
npm WARN package.json angular2-quickstart#1.0.0 No README data
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'angular/common' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'angular2-quickstart'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 4.2.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/anshuman/angular2-quickstart
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/anshuman/angular2-quickstart/npm-debug.log
npm ERR! not ok code 0
you must update your node and your npm for the last versions.
node -v
v4.4.7
npm -v
3.10.5
Also try to cleaar your npm cache
npm cache clear

Cannot update node.js

I am trying to update node.js in order to scaffold an angular project.
But when I launch this command:
npm update -g
I am getting this:
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "update" "-g"
npm ERR! node v5.2.0
npm ERR! npm v3.3.12
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/vs-tac
npm ERR! 404
npm ERR! 404 'vs-tac' 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! Please include the following file with any support request:
npm ERR! C:\Development\workspaceWeb\redPlus\npm-debug.log
I decided to update the npm because I was getting other errors when calling
yo angular --minsafe
so I split the involved programs.
How to fix it?
It's a package linked to cordova, you can manually reinstall it: http://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/#vstac You'll need to install Visual Studio though.
I think the vs-tac package has been unpublished. You should contact the person who maintains the packages to look further in the issue.

Resources