javascript - npm 错误!Windows 10 上的代码 EPERM 和 errno -4048
问题描述
我正在使用 WebStorm 编写代码。今天我尝试安装 redux-form 并且从那一刻起代码就被破坏了。另外,如果yarn install
一切顺利,我会在本地主机上的浏览器中收到此错误
C:/Users/WebstormProjects/.....reducer.ts
(7,40): Could not find a declaration file for module 'redux-form'. 'C:/Users/WebstormProjects.....index.js' implicitly has an 'any' type.
Try `npm install @types/redux-form` if it exists or add a new declaration (.d.ts) file containing `declare module 'redux-form';`
代码没有语义错误,我也安装了错误,npm install @types/redux-form
但情况是一样的。有人能帮我吗??
解决方案
(代表问题作者发布)。
我解决了使用节点模块删除目录的问题并执行:npm install
安装 redux-form 并稍后安装此组件的类型。
推荐阅读
- node.js - Visual Studio Code - 调试nodejs代码时未验证的断点
- android - 如何通过 java 代码操作 build.gradle 的产品风格
- php - 使用 JSON 数据创建对象/模型,这不是所需模型对象的精确副本
- java - 用户解锁后未重新生成 Windows 机器上的 Kerberos 缓存票证
- swift - 即使认为文档说它是正确的,额外的参数调用
- package.json - package.json、package-lock.json 和 yarn.lock 文件的区别?
- ios - 如何从应用内购买中获得购买的产品
- reactjs - 反应 js 动作不起作用
- jquery - jQuery哈希集函数
- excel - 在 Linux 中将宏脚本添加到外部的 excel 文件中