Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ng new" throws an error while installing dependencies, dependency "error-ex" not found #16944

Closed
akmalnawfer opened this issue Feb 12, 2020 · 10 comments

Comments

@akmalnawfer
Copy link

I installed angular 9 cli, my node.js is on latest version. While I try to create a new angular project im getting the following error.

/ Installing packages...npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-02-12T04_52_40_200Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.

@alan-agius4
Copy link
Collaborator

This seems like a problem with your node/npm and not with Angular CLI.

Please have a look at the fixing npm permissions page, common errors page, npm issue tracker, or open a new issue in that issue tracker if the problem you are experiencing isn't known.

@EMProduct
Copy link

facing the same problem

@AbdelAbdelAli
Copy link

I installed angular 9 cli, my node.js is on latest version. While I try to create a new angular project im getting the following error.

/ Installing packages...npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-02-12T04_52_40_200Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.

i got the same error
if you fixed the problem please help

@petebacondarwin
Copy link
Member

Note this line in your log:

npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex

Try going to that URL and see if you can access it. For me the request does not 404. If it does then there is some problem with you npm registry connection.

@AbdelAbdelAli
Copy link

AbdelAbdelAli commented Feb 12, 2020

the request does error 404
i just updated my npm, node and angular cli

@EMProduct
Copy link

the url get 404
i installed the npm an angular cli and same problem
can't access the url page

@rassasamine
Copy link

as a temporary fix you can manually install "error-ex" module directly from GitHub then install your dependencies as mentioned here facebook/create-react-app#8465 (comment)

$ npm i https://github.com/Qix-/node-error-ex
$ npm i

@Buddikawidu
Copy link

refer mentioned thread,
facebook/create-react-app#8465

@kelvinotundoKE
Copy link

I had a similar problem. It appears to be an npm problem. Then I changed my package manager for Angular by running ng config -g cli.packageManager yarn. I literally shouted, "Thank you Yarn"

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants