• 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>
    
    5640239-ce74a3234e444f0a.png
    图片.png

    解决办法:

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


    5640239-eaac46613730f086.png
    图片.png

    原文作者:祈澈姑娘
    技术博客:https://www.jianshu.com/u/05f416aefbe1
    90后前端妹子,爱编程,爱运营,爱折腾。
    坚持总结工作中遇到的技术问题,坚持记录工作中所所思所见,欢迎大家一起探讨交流。

  • 相关阅读:
    拖拽系列二、利用JS面向对象OOP思想实现拖拽封装
    拖拽系列一、JavaScript实现简单的拖拽效果
    CSS3中三角形及三角形组合图实现
    计算机内存管理介绍
    [Leetcode]双项队列解决滑动窗口最大值难题
    [Leetcode]827.使用回溯+标记解决最大人工岛问题
    计算机启动过程
    [Leetcode]895.最大频率栈
    GDB查看内存(x 命令)
    理解递归
  • 原文地址:https://www.cnblogs.com/ting6/p/9725310.html
Copyright © 2020-2023  润新知