zoukankan      html  css  js  c++  java
  • vue-cli安装失败解决方案

    C:WINDOWSsystem32>npm install vue-cli -g
    npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated duplexer3@0.1.4: Sadly, duplexer3 is no longer with us. It will be missed.
    npm WARN rm not removing C:Program Files
    odejsvue.ps1 as it wasn't installed by C:Program Files
    odejs
    ode_modulesvue-cli
    npm WARN rm not removing C:Program Files
    odejsvue.cmd as it wasn't installed by C:Program Files
    odejs
    ode_modulesvue-cli
    npm WARN rm not removing C:Program Files
    odejsvue as it wasn't installed by C:Program Files
    odejs
    ode_modulesvue-cli
    C:Program Files
    odejsvue-init -> C:Program Files
    odejs
    ode_modulesvue-cliinvue-init
    C:Program Files
    odejsvue-list -> C:Program Files
    odejs
    ode_modulesvue-cliinvue-list
    npm ERR! code EEXIST
    npm ERR! path C:Program Files
    odejs
    ode_modulesvue-cliinvue
    npm ERR! dest C:Program Files
    odejsvue.cmd
    npm ERR! EEXIST: file already exists, cmd shim 'C:Program Files
    odejs
    ode_modulesvue-cliinvue' -> 'C:Program Files
    odejsvue.cmd'
    npm ERR! File exists: C:Program Files
    odejsvue.cmd
    npm ERR! Remove the existing file and try again, or run npm
    npm ERR! with --force to overwrite files recklessly.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR! C:Userszwenliao.npm\_logs2020-07-06T03_31_36_024Z-debug.log

    方案1:暴力解决,直接输入指令

    C:WINDOWSsystem32> npm install vue-cli -g  --force

    方案2:

    错误是C:Program Files odejsvue.cmd文件已经存在 需要删除

    方案2参考链接

  • 相关阅读:
    co模块总结
    Promise总结
    webpack错误Chunk.entry was removed. Use hasRuntime()
    jquery validate用法总结
    node命令行开发
    animation总结
    formData使用总结
    vue-resource发送multipart/form-data数据
    keil中使用Astyle格式化你的代码的方法-keil4 keil5通用
    tcpip入门的网络教程汇总
  • 原文地址:https://www.cnblogs.com/ChineseLiao/p/13253989.html
Copyright © 2011-2022 走看看