angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

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

Open akmalnawfer opened this issue 6 years ago • 10 comments

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.

akmalnawfer avatar Feb 12 '20 05:02 akmalnawfer

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.

alan-agius4 avatar Feb 12 '20 06:02 alan-agius4

facing the same problem

EMProduct avatar Feb 12 '20 10:02 EMProduct

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

AbdelAbdelAli avatar Feb 12 '20 10:02 AbdelAbdelAli

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.

petebacondarwin avatar Feb 12 '20 10:02 petebacondarwin

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

AbdelAbdelAli avatar Feb 12 '20 10:02 AbdelAbdelAli

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

EMProduct avatar Feb 12 '20 10:02 EMProduct

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

rassasamine avatar Feb 12 '20 11:02 rassasamine

refer mentioned thread, https://github.com/facebook/create-react-app/issues/8465

Buddikawidu avatar Feb 12 '20 11:02 Buddikawidu

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"

kelvinotundoKE avatar Feb 28 '20 05:02 kelvinotundoKE

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.