node.js - NPM 多次安装错误
问题描述
当我尝试安装 npm 时,控制台会给出以下错误和警告:
npm WARN checkPermissions Missing write access to C:\Users\Aristophanes\node_modules\web3
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-react-app@2.1.0 requires a peer of babel-eslint@^7.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-react-app@2.1.0 requires a peer of eslint@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-loader@1.9.0 requires a peer of eslint@>=1.6.0 <5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-jsx-a11y@5.1.1 requires a peer of eslint@^2.10.2 || ^3 || ^4 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions@2.1.0 requires a peer of firebase-admin@~6.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! path C:\Users\Aristophanes\node_modules\web3
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'C:\Users\Aristophanes\node_modules\web3'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Aristophanes\AppData\Roaming\npm-cache\_logs\2018-11-02T23_13_12_948Z-debug.log
有谁知道我该如何解决这个问题?谢谢你。
解决方案
尝试删除 中的web3
文件夹C:\Users\Aristophanes\node_modules\web3
,以及node_modules
项目目录中的文件夹(如果存在)。希望它会帮助你:)
推荐阅读
- numpy - 如何将 20x (.svs whole-slide-image) 放大到 40x 幻灯片?
- html - 图像不显示。我正在使用 express、EJS 和 bootstrap
- java - 如何将java json对象数据发送到android api请求
- java - RxJava Flowable 生成函数是否可以并行生成多个数据样本?
- c# - 如何对数据网格 Mvvm 进行数据绑定
- automation - 如果输入数据无效则跳过测试 newman npm
- php - 如何获取数据库表中相同数据的出现次数总和?
- python - 如果数据类型是 uuid 和日期时间列表,如何将 DF 插入到 clickhouse 表中?
- python - 如何将图像从 Python 中的 Azure 函数(HTTP 触发器)发送到 HTTP 响应中的某个前端框架?
- php - 对于 WooCommerce 中特定不同运输类别中的产品,将项目数量设置为“x”的倍数