简体   繁体   English

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

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

I'm writing code using WebStorm. 我正在使用WebStorm编写代码。 Today I tryed to install redux-form and from that moment the code it's broken. 今天,我尝试安装redux-form,从那时起,它的代码已损坏。 Also if the yarn install goes well I i get this error into browser on localhost 另外,如果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';`

The code have no semantic error and I also installed as the error says npm install @types/redux-form but the situation it's the same. 该代码没有语义错误,我也安装了该错误,因为错误显示npm install @types/redux-form但情况相同。 Can someone help me?? 有人能帮我吗??

(Posted on behalf of the question author). (代表问题作者发布)。

I solved the problem deleting the directory with node modules and do: npm install , installing the redux-form and later installing types for this component. 我解决了使用节点模块删除目录并执行以下操作的问题: npm install ,安装redux-form以及以后为该组件安装类型。

暂无
暂无

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

相关问题 npm 安装-g @sanity/cli npm 错误:代码 EPERM npm 错误! 系统调用 mkdir npm 错误! 路径 C:\Program Files\Git\usr\local npm 错误! 错误号-4048 - npm install -g @sanity/cli npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path C:\Program Files\Git\usr\local npm ERR! errno -4048 npm 错误! 代码 ELIFECYCLE npm ERR! 错误 2 - npm ERR! code ELIFECYCLE npm ERR! errno 2 npm 错误! 代码 ELIFECYCLE npm 错误! 错误号 1 - npm ERR! code ELIFECYCLE npm ERR! errno 1 调试npm ERR! 代码 ELIFECYCLE npm 错误! 错误号 1 - debugging npm ERR! code ELIFECYCLE npm ERR! errno 1 npm 错误! 代码 ERR_SOCKET_TIMEOUT npm 错误! 错误号 ERR_SOCKET_TIMEOUT - npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! errno ERR_SOCKET_TIMEOUT 在运行 npm install 时获取“npm ERR!code ELIFECYCLE npm ERR!errno 126” - Getting "npm ERR! code ELIFECYCLE npm ERR! errno 126" while running npm install npm 错误:错误号,-13:npm 错误! 代码:'EACCES' 当使用 npm install -g @vue/cli - npm ERR! errno: -13, npm ERR! code: 'EACCES' when use npm install -g @vue/cli npm 错误! 错误:EPERM:不允许操作,取消链接 - npm ERR! Error: EPERM: operation not permitted, unlink npm - EPERM:Windows 不允许操作 - npm - EPERM: operation not permitted on Windows npm 错误! 代码 HPE_HEADER_OVERFLOW npm 错误! errno HPE_HEADER_OVERFLOW npm 错误! 请求 - npm ERR! code HPE_HEADER_OVERFLOW npm ERR! errno HPE_HEADER_OVERFLOW npm ERR! request to
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM