• vue踩坑- 报错npm ERR! cb() never called!


    在vue项目中引入饿了么elementUI组件的步骤之中,出现以下的错误:

    D:my-project-first>npm i element-ui -S
    Unhandled rejection RangeError: Maximum call stack size exceededill install loadIdealTree
        at RegExp.test (<anonymous>)
        at D:
    ode_modules
    pm
    ode_modulesaprobaindex.js:38:16
        at Array.forEach (<anonymous>)
        at module.exports (D:
    ode_modules
    pm
    ode_modulesaprobaindex.js:33:11)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:37:3)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
        at flatNameFromTree (D:
    ode_modules
    pmlibinstallflatten-tree.js:39:14)
    
    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:Program Files
    odejs
    ode_cache\_logs2018-08-28T07_04_04_977Z-debug.log
    
    D:my-project-first>
    

    图片.png

    解决办法:

    尝试 删除项目中的 package-lock.json 文件 和 node_modules 文件夹,然后再尝试 npm install.

  • 相关阅读:
    mysql 大数据提取
    Python 爬虫实例(11)—— 爬虫 苏宁易购
    Python 爬虫实例(10)—— 四行代码实现刷 博客园 阅读数量
    Python MySQLdb 批量插入 封装
    Python MySQLdb insert(插入) 封装
    Python MySQLdb select(选择) 封装
    iOS开发-iPad侧边栏Tab选项卡切换
    iOS开发-xCode6(iOS 8)中应用程序图标和启动页面设置
    iOS开发-CoreMotion框架(加速计和陀螺仪)
    iOS开发-JSON解析
  • 原文地址:https://www.cnblogs.com/wangting888/p/9701193.html
Copyright © 2020-2023  润新知