Angular-cli: "ng new" throws an error while installing dependencies, dependency "error-ex" not found

Created on 12 Feb 2020  路  10Comments  路  Source: angular/angular-cli

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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/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.

Most helpful comment

as a temporary fix you can manually install "error-ex" module directly from GitHub then install your dependencies as mentioned here https://github.com/facebook/create-react-app/issues/8465#issuecomment-585135338

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

All 10 comments

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.

facing the same problem

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 [email protected]: 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

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.

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

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

as a temporary fix you can manually install "error-ex" module directly from GitHub then install your dependencies as mentioned here https://github.com/facebook/create-react-app/issues/8465#issuecomment-585135338

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

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"

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rajjejosefsson picture rajjejosefsson  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

ericel picture ericel  路  3Comments

jmurphzyo picture jmurphzyo  路  3Comments

purushottamjha picture purushottamjha  路  3Comments