node.js - NPM安装包时有些情况会爆出一些的警告/报错信息怎么判断是否可以忽略?
PHP中文网
PHP中文网 2017-04-17 15:50:36
0
2
629

NPM安装包时有些情况会爆出一些的警告/报错信息
学习有些视频的时候会说一些警告可以忽略
有些NPM警告看到是说部分东西是被弃用
警告的还好有可能不影响
但在学习的过程中
比如说使用yeoman还会爆出一些错误出来
不知道是否影响正常使用
怎么判断是否可以忽略?

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
大家讲道理

The darker the color, the more attention you need to pay attention to, such as ERR-level errors.
Secondly, just look at the notice and warn levels. Warn-level errors often appear, mostly because there are differences between the plug-in versions you have currently installed. Conflict, because the package.json in each node_modules has requirements and versions for other plug-ins! You may be asked to choose the corresponding version!

迷茫

Let’s talk about red first, that is, the error named “err” cannot be ignored at all.
When this occurs, it needs to be solved according to the error.
As for “warn”, which is a warning, the problem is not big and can be ignored

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template