zoukankan      html  css  js  c++  java
  • react-redux安装失败的问题

    刚试写了一个react的项目,为了体验一下react全家桶使用了 redux,但是redux想要配合react使用还需要 react-redux。

    安装命令: npm install react-redux --save 

    但是在安装react-redux的时候遇到了一个问题,安装失败,报错如下

    npm ERR! cb() never called!
    
    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR! https://github.com/npm/npm/issues
    
    npm ERR! A complete log of this run can be found in:
    npm ERR! C:UsersAppDataRoaming
    pm-cache_logs2018-01-03T03_19_40_198Z-debug.log
    Error: fatal error!

    然后google了好久也没找到确切的答案,最后怒从心头起,恶向胆边生,直接在package.json的dependencies字段里面手动加了这个 "react-redux": "^5" 然后执行 npm install 

    这样就安装成功了。

    至于具体的原因尚不了解。

  • 相关阅读:
    vue
    手写Promise
    Promise应用
    Promise
    JS_URL模块
    模板字符串应用
    JS-OOP
    jQuery——过时,但是经典,关注核心点即可。
    MySql补充
    offset系列
  • 原文地址:https://www.cnblogs.com/zhaozhipeng/p/8297606.html
Copyright © 2011-2022 走看看