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

ng new error

Open shubhamsoni136 opened this issue 8 years ago • 17 comments

getting error while creating new project using angular cli 6.0.8

npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump

added 1113 packages from 1284 contributors and audited 21849 packages in 235.594s found 13 vulnerabilities (9 low, 4 high) run npm audit fix to fix them, or npm audit for details

shubhamsoni136 avatar Jun 13 '18 06:06 shubhamsoni136

@shubhamsony I don't think audit exist in the npm version 5.6.0 :(

devpato avatar Jun 13 '18 15:06 devpato

not sure but audit exist in npm version 6.1.0

shubhamsoni136 avatar Jun 13 '18 19:06 shubhamsoni136

I have the same error. This problem is the same with fresh install of node LTS and node@latest versions.

https://gist.github.com/BeRoots/f8d664494116926fad38a6dfdb9cb373

BeRoots avatar Jun 19 '18 20:06 BeRoots

actually this issue is due to karma package which is installing some other packages that are deprecated. the deprecated packages that karma is installing are istanbul-lib-hook, nodemailer, mailcomposer ,node-uuid, buildmail ,uws,and socks.

shubhamsoni136 avatar Jun 22 '18 04:06 shubhamsoni136

still getting same error.......

shivakumarprabha avatar Jun 26 '18 05:06 shivakumarprabha

getting same error here, any updates or recommendations?

hollygood avatar Jun 27 '18 19:06 hollygood

It's just a warning. Packages will finish installing if you wait for a while.

takasoft avatar Jun 27 '18 19:06 takasoft

@takao42 yes, but it leaves some vulnerabilities in our project.

shubhamsoni136 avatar Jun 28 '18 05:06 shubhamsoni136

npm v 6.1 Im getting these issues also. After running ng new, the resulting console messages are like those mentioned above. Then with npm audit, there are 13 vulnerabilities, 4 high. I need to resolve this before selling the team on using the latest version of angular on a new project. Seems like "high" issues relate to protractor and ws. However, it seems like a major annoyance to have to manually update dependencies when spinning up a new app via ng new, especially when some of these dependencies have "high" security vulnerabilities. I could understand if one was using beta versions etc, but not for production apps.

netbitshift avatar Jul 04 '18 21:07 netbitshift

i'm also getting same error when using ng new with, Angular CLI: 6.0.8 Node: 10.6.0

vkyadav998 avatar Jul 13 '18 06:07 vkyadav998

any solution? I see people creating projects and they have no problem

Diegotxz avatar Jul 15 '18 19:07 Diegotxz

hey @Diegotxz, Now it's showing "WARN deprecated [email protected]: 1.2.0 should have been a major version bump". But its working fine with all new update.

vkyadav998 avatar Jul 16 '18 06:07 vkyadav998

Heya, we're tracking these vulnerability warnings/errors in https://github.com/angular/angular-cli/issues/10963.

filipesilva avatar Jul 19 '18 17:07 filipesilva

I have run this command npm install -g istanbul then create my new Angular project without any problem ( warning and errors)

sdsdjr avatar Jul 30 '18 08:07 sdsdjr

npm install -g istanbul

tried this and got a response that this was not a valid command

MandelaMan avatar Aug 06 '18 18:08 MandelaMan

I have the same problem here. But I can't install node_modules, because the cli not found istanbul^0.4.5. Node: 10.1.0 npm: 6.0.1 ng: 6.1.2 OS: Win7/x64

update: I updated to node v.10.8.0 and still getting the same error

Eduk29 avatar Aug 08 '18 13:08 Eduk29

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.