输入进行安装

cnpm install --save vue-router

回车加载后出现

√ Installed 1 packages
√ Linked 2 latest versions
√ Run 0 scripts
peerDependencies WARNING vue-router@latest requires a peer of vue@^3.2.0 but vue@2.6.14 was installed
√ All packages installed (2 packages installed from npm registry, used 2s(network 2s), speed 233.4KB/s, json 3(144.38KB), tarball 209.69KB, manifests cache hit 0, etag hit 0 / miss 0)

在安装less时也出现过peerDependencies WARNING

输入进行安装

cnpm install --save less less-loader@5

回车加载后出现

√ Installed 2 packages
√ Linked 27 latest versions
√ Run 0 scripts
peerDependencies WARNING less-loader@5 requires a peer of less@^2.3.1 || ^3.0.0 but less@4.1.2 was installed
peerDependencies WARNING less-loader@5 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but webpack@5.72.0 was installed
√ All packages installed (27 packages installed from npm registry, used 5s(network 5s), speed 278.59KB/s, json 27(181.67KB), tarball 1.23MB, manifests cache hit 0, etag hit 0 / miss 0)

在目前less可以正常使用,没有出现问题

Logo

前往低代码交流专区

更多推荐