1

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

4
  • this says some of the modules you used are 'depricted' Commented Jun 25, 2018 at 9:23
  • yes, but I don't know how to fix this problem, I have tried to update manualy istanbul-lib-hook to the latest version but the warning always appears Commented Jun 25, 2018 at 9:26
  • What "commands" are you using the create the angular project? Commented Jun 25, 2018 at 9:31
  • I used "ng new" for creating project Commented Jun 25, 2018 at 10:38

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.