npm安装过程的报错
Posted czheng7
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm安装过程的报错相关的知识,希望对你有一定的参考价值。
$ npm install px2rem-loader
npm WARN deprecated natives@1.1.6: This module relies on Node.js‘s internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
之前版本太旧有问题。所以: npm i graceful-fs
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
同样是版本问题: npm i ajv (或者搜下ajv的最新更新方式)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
以上是关于npm安装过程的报错的主要内容,如果未能解决你的问题,请参考以下文章
npm安装模块依赖时一个常见的报错的解决办法(“Please try running this command again as root/Administrator”)