【问题标题】:npm ERR! code EPERM and errno -4048 on windows 10npm 错误! Windows 10 上的代码 EPERM 和 errno -4048
【发布时间】:2019-07-07 08:56:32
【问题描述】:

我正在使用 WebStorm 编写代码。今天我尝试安装 redux-form,从那一刻起代码就被破坏了。此外,如果yarn install 运行良好,我会在 localhost 上的浏览​​器中收到此错误

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,但情况是一样的。有人可以帮我吗?

【问题讨论】:

  • index.js 的第 7 行第 40 列有什么内容? ;-)
  • @Sam reducers 的定义,但代码完全可以工作
  • EPERM 通常与权限有关。也许这有帮助。

标签: javascript redux npm-install redux-form yarnpkg


【解决方案1】:

(代表问题作者发布)。

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

【讨论】:

    猜你喜欢
    • 2016-08-09
    • 2018-02-15
    • 2018-01-15
    • 1970-01-01
    • 1970-01-01
    • 2015-08-31
    • 2022-10-08
    • 2020-08-27
    • 2019-03-08
    相关资源
    最近更新 更多