首页 > 解决方案 > 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但情况是一样的。有人能帮我吗??

标签: javascriptreduxnpm-installredux-formyarnpkg

解决方案


(代表问题作者发布)。

我解决了使用节点模块删除目录的问题并执行:npm install安装 redux-form 并稍后安装此组件的类型。


推荐阅读