简体   繁体   中英

Warning message everytime I use an npm command

Fresh node install, new directory and everything, deleted all the previous files and this error is still occuring.

Steps to reproduce:
run node -v

npm WARN config optional Use --omit=optional to exclude optional dependencies, or
npm WARN config --include=optional to include them.
npm WARN config
npm WARN config Default value does install optional deps unless otherwise omitted.
npm WARN config optional Use --omit=optional to exclude optional dependencies, or
npm WARN config --include=optional to include them.
npm WARN config
npm WARN config Default value does install optional deps unless otherwise omitted.

No ideia why this is happening, it's not affecting anything other than just having a WARN message everytime I run a command.

I've fixed it by deleting both user and global configs for npm. It was the only thing that the full instalation didn't relete (I guess) so it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM