• npm ERR! missing: core-util-is@^1.0.2, required by Administrator


    1、错误描述

    C:UsersAdministrator>npm list
    C:UsersAdministrator
    +-- babel-core@5.8.38 extraneous
    +-- UNMET DEPENDENCY core-util-is@^1.0.2
    +-- grunt@1.0.2 extraneous
    +-- UNMET DEPENDENCY process-nextick-args@^2.0.0
    +-- UNMET DEPENDENCY util-deprecate@^1.0.2
    +-- vue@2.2.6 extraneous
    `-- webpack-cli@2.1.4 extraneous
    
    npm ERR! missing: core-util-is@^1.0.2, required by Administrator
    npm ERR! missing: process-nextick-args@^2.0.0, required by Administrator
    npm ERR! missing: util-deprecate@^1.0.2, required by Administrator
    npm ERR! extraneous: babel-core@5.8.38 C:UsersAdministrator
    ode_modulesabel
    -core
    npm ERR! extraneous: grunt@1.0.2 C:UsersAdministrator
    ode_modulesgrunt
    npm ERR! extraneous: vue@2.2.6 C:UsersAdministrator
    ode_modulesvue
    npm ERR! extraneous: webpack-cli@2.1.4 C:UsersAdministrator
    ode_moduleswebpa
    ck-cli
    
    C:UsersAdministrator>cnpm list
    npm WARN npm npm does not support Node.js v10.3.0
    npm WARN npm You should probably upgrade to a newer version of node as we
    npm WARN npm can't make any promises that npm will work with this version.
    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8,
     9.
    npm WARN npm You can find the latest version at https://nodejs.org/
    C:UsersAdministrator
    +-- babel-core@5.8.38 extraneous
    +-- UNMET DEPENDENCY core-util-is@^1.0.2
    +-- grunt@1.0.2 extraneous
    +-- UNMET DEPENDENCY process-nextick-args@^2.0.0
    +-- UNMET DEPENDENCY util-deprecate@^1.0.2
    +-- vue@2.2.6 extraneous
    `-- webpack-cli@2.1.4 extraneous
    
    npm ERR! missing: core-util-is@^1.0.2, required by Administrator
    npm ERR! missing: process-nextick-args@^2.0.0, required by Administrator
    npm ERR! missing: util-deprecate@^1.0.2, required by Administrator
    npm ERR! extraneous: babel-core@5.8.38 C:UsersAdministrator
    ode_modulesabel
    -core
    npm ERR! extraneous: grunt@1.0.2 C:UsersAdministrator
    ode_modulesgrunt
    npm ERR! extraneous: vue@2.2.6 C:UsersAdministrator
    ode_modulesvue
    npm ERR! extraneous: webpack-cli@2.1.4 C:UsersAdministrator
    ode_moduleswebpa
    ck-cli
    
    C:UsersAdministrator>

    2、错误原因

         由错误提示可知,是C:UsersAdministrator ode_modules路径下,缺少这几个模块组件


    3、解决办法

         分别对这几个插件进行安装

    cnpm install -g core-util-is
    
    cnpm install -g process-nextick-args
    
    cnpm install -g util-deprecate
    
    cnpm install -g babel-core
    
    cnpm install -g grunt
    
    cnpm install -g vue
    
    cnpm install -g webpack-cli

  • 相关阅读:
    paip.python错误解决21
    【Linux入门学习之】vi/vim编辑器必知必会
    深入理解C/C++数组和指针
    《当幸福来敲门》的经典对话
    matlab与excel xlsread、xlswrite实用方法
    vim复制粘贴的命令
    深入理解C/C++数组和指针
    vim复制粘贴的命令
    matlab与excel xlsread、xlswrite实用方法
    【Linux入门学习之】vi/vim编辑器必知必会
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313779.html
Copyright © 2020-2023  润新知