请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装 vue-cli的时候报错,是因为之前已经安装过脚手架了吗?

C:\Users\Administrator>npm install -g vue-cli

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-07-13T0

2_41_07_505Z-debug.log


正在回答 回答被采纳积分+3

3回答

提问者 yan5796 2017-07-13 14:05:30

npm  install 的时候报错

npm ERR! code EINTEGRITY

npm ERR! sha1-l8/Eg4Ze6oV33Ho2dJKbmr9VMJU= integrity checksum failed when using

sha1: wanted sha1-l8/Eg4Ze6oV33Ho2dJKbmr9VMJU= but got sha1-mgZMi5fBrCaRVrfM2Sa6

yfp3qUw=. (655344 bytes)

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-07-13T0

5_57_15_729Z-debug.log


0 回复 有任何疑惑可以回复我~
提问者 yan5796 2017-07-13 13:46:49

C:\Users\Administrator>vue

  Usage: vue <command> [options]

  Options:

    -V, --version  output the version number

    -h, --help     output usage information

  Commands:

    init        generate a new project from a templ

    list        list available official templates

    build       prototype a new project

    help [cmd]  display help for [cmd]


C:\Users\Administrator>vue list

  Available official templates:

  ★  browserify - A full-featured Browserify + vueify setup with hot-reload, li

nting & unit testing.

  ★  browserify-simple - A simple Browserify + vueify setup for quick prototypi

ng.

  ★  pwa - PWA template for vue-cli based on the webpack template

  ★  simple - The simplest possible Vue setup in a single HTML file

  ★  webpack - A full-featured Webpack + vue-loader setup with hot reload, lint

ing, testing & css extraction.

  ★  webpack-simple - A simple Webpack + vue-loader setup for quick prototyping

.


0 回复 有任何疑惑可以回复我~
ustbhuangyi 2017-07-13 12:46:36

你执行 vue list,能输出内容吗

0 回复 有任何疑惑可以回复我~
  • 提问者 yan5796 #1
    C:\Users\Administrator>vue
    
      Usage: vue <command> [options]
    
      Options:
    
        -V, --version  output the version number
    
        -h, --help     output usage information
    
      Commands:
    
        init        generate a new project from a templ
    
        list        list available official templates
    
        build       prototype a new project
    
        help [cmd]  display help for [cmd]
    
    
    
    C:\Users\Administrator>vue list
    
      Available official templates:
    
      ★  browserify - A full-featured Browserify + vueify setup with hot-reload, li
    
    nting & unit testing.
    
      ★  browserify-simple - A simple Browserify + vueify setup for quick prototypi
    
    ng.
    
      ★  pwa - PWA template for vue-cli based on the webpack template
    
      ★  simple - The simplest possible Vue setup in a single HTML file
    
      ★  webpack - A full-featured Webpack + vue-loader setup with hot reload, lint
    
    ing, testing & css extraction.
    
      ★  webpack-simple - A simple Webpack + vue-loader setup for quick prototyping
    
    按照步骤操作是这样的
    回复 有任何疑惑可以回复我~ 2017-07-13 13:47:54
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信