Reputation: 65
I want to create Angular project and I get these warnings and errors
npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump
npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: stop using this version
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm ERR! write after end
npm ERR! write after end
I have tried to fix these errors by upgrading npm but after npm upgrade, I got the same issues
Upvotes: 1
Views: 951
Reputation: 686
I was in same problem. after much try and error, i solved as follows. install yarn. then run the following code ng set --global packageManager=yarn
and then run ng new project_name
this way, i solved the problem
If at any point you want to revert back to npm run this: ng config -g cli.packageManager npm
Upvotes: 1