繁体   English   中英

npm ERR! Windows 10上的代码EPERM和errno -4048

[英]npm ERR! code EPERM and errno -4048 on windows 10

我正在使用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以及以后为该组件安装类型。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM