老版本无法删除

老版本无法删除

wanglimindeMacBook-Air:Desktop wanglimin$ npm uninstall vue-cli -g
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/absolute
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ansi-escapes
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ansi-wrap
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ansi-red
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/array-differ
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/array-uniq
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/array-union
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/arrify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/asynckit
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/aws-sign2
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/aws4
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/balanced-match
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/base64-js
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/bluebird
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/buffer-alloc-unsafe
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/buffer-crc32
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/buffer-fill
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/buffer-alloc
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/builtins
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/capture-stack-trace
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/caseless
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/chardet
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/cli-spinners
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/cli-width
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/clone
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/co
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/co-read
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/co-from-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/coffee-script
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/color-name
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/color-convert
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ansi-styles
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/commander
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/concat-map
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/brace-expansion
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/consolidate
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/core-util-is
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/create-error-class
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/dashdash
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-tarbz2/node_modules/file-type
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-unzip/node_modules/file-type
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/delayed-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/combined-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/duplexer3
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/enable
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/escape-string-regexp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/esprima
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/extend
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/extsprintf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/fast-deep-equal
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/fast-json-stable-stringify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/figures
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/file-type
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/filename-reserved-regex
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/forever-agent
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/fs-constants
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/fs.realpath
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/get-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/getpass
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/git-clone
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/graceful-fs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/har-schema
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-ansi/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-ansi
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-flag
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-generators
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-symbol-support-x
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-to-string-tag-x
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ieee754
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/inherits
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ini
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-extendable
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/extend-shallow
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-fullwidth-code-point
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-natural-number
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-object
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-redirect
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-retry-allowed
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-typedarray
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/is-utf8
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/isarray
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/isstream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/isurl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/jsbn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/json-schema
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/json-schema-traverse
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/json-stringify-safe
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/jsonfile
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/klaw
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/lodash
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/async
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/lowercase-keys
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/make-dir/node_modules/pify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/make-dir
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith/node_modules/ansi-styles
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith/node_modules/strip-ansi
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith/node_modules/supports-color
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith/node_modules/chalk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/mime-db
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/mime-types
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/form-data
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/mimic-fn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/minimatch
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/minimist
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/mkdirp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/multimatch
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/mute-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/neo-async
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/npm-conf/node_modules/pify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/oauth-sign
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/object-assign
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/onetime
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/os-homedir
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/os-tmpdir
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/path-is-absolute
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/pend
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/fd-slicer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/performance-now
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/pify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/pinkie
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/pinkie-promise
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-unzip/node_modules/get-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/prepend-http
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/process-nextick-args
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/proto-list
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/config-chain
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/npm-conf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/get-proxy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/psl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/punycode
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/qs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/readable-stream/node_modules/safe-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/recursive-readdir
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/run-async
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/safe-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/safer-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/asn1
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ecc-jsbn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/iconv-lite
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/seek-bzip
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/semver
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/signal-exit
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/restore-cursor
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/cli-cursor
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/source-map
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/sprintf-js
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/argparse
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/js-yaml
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/stat-mode
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/string_decoder/node_modules/safe-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/string_decoder
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/string-width/node_modules/strip-ansi
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/string-width
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/strip-ansi/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/strip-ansi
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/strip-dirs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/strip-outer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/supports-color
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/chalk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/log-symbols
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ora
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/through
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/thunkify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/thunkify-wrap
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tildify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/timed-out
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tmp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/external-editor
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/to-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/toml
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/gray-matter
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tough-cookie
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/trim-repeated
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/filenamify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tslib
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/rxjs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/inquirer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tunnel-agent
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tweetnacl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/bcrypt-pbkdf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/sshpk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/uglify-js
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/uid
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/unbzip2-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/unyield
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/unzip-response
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/uri-js
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ajv
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/har-validator
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/url-parse-lax
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/got
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/url-to-options
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/caw
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/user-home
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/util-deprecate
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/readable-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/bl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/uuid
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/validate-npm-package-name
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/verror
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/jsprim
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/http-signature
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/request
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/win-fork
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/wordwrap
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/handlebars
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/wrap-fn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/ware
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/wrappy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/once
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/end-of-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/inflight
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/glob
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/rimraf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/fs-extra
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/co-fs-extra
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/xtend
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/tar-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-tar
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-tarbz2
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-targz
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/yaml-js
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/read-metadata
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/yauzl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-unzip
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/download
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/download-git-repo
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-tarbz2/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/decompress-unzip/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/has-ansi/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/make-dir/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/metalsmith/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/npm-conf/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/readable-stream/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/string_decoder/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/string-width/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/vue-cli/node_modules/strip-ansi/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules/vue-cli/node_modules/absolute
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/vue-cli/node_modules/absolute'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/vue-cli/node_modules/absolute'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/vue-cli/node_modules/absolute'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wanglimin/.npm/_logs/2021-03-25T15_23_46_753Z-debug.log

如上图提示,无法顺利卸载老版本 

版本还是为 2.9.6

wanglimindeMacBook-Air:Desktop wanglimin$ vue -V

2.9.6


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

登陆购买课程后可参与讨论,去登陆

3回答
好帮手慕星星 2021-04-19 10:49:27

同学你好,看报错可能是权限的问题,建议用下面的命令试试

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

祝学习愉快!

好帮手慕星星 2021-04-18 16:23:57

同学你好,问题解答如下:

1、这个提示就是先卸载之前的旧版本,然后再安装新版本,可以使用这两步命令来操作

http://img1.sycdn.imooc.com//climg/607bec0809cfaece07420285.jpg

2、cnpm是淘宝镜像的命令,如果没有安装过就不能使用,用npm安装就可以。

或者先安装一下镜像

npm i -g cnpm --registry=https://registry.npm.taobao.org

然后再用cnpm会快一些。

祝学习愉快!

  • 提问者 幕布斯3322991 #1

    cnpm本身也安装不上

    wanglimindeMacBook-Air:Desktop wanglimin$ npm i -g cnpm --registry=https://registry.npm.taobao.org

    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
    npm ERR! code EACCES
    npm ERR! syscall access
    npm ERR! path /usr/local/lib/node_modules
    npm ERR! errno -13
    npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
    npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
    npm ERR! errno: -13,
    npm ERR! code: 'EACCES',
    npm ERR! syscall: 'access',
    npm ERR! path: '/usr/local/lib/node_modules'
    npm ERR! }
    npm ERR!
    npm ERR! The operation was rejected by your operating system.
    npm ERR! It is likely you do not have the permissions to access this file as the current user
    npm ERR!
    npm ERR! If you believe this might be a permissions issue, please double-check the
    npm ERR! permissions of the file and its containing directories, or try running
    npm ERR! the command again as root/Administrator.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/wanglimin/.npm/_logs/2021-04-18T14_33_08_990Z-debug.log
    wanglimindeMacBook-Air:Desktop wanglimin$
    wanglimindeMacBook-Air:Desktop wanglimin$

    感觉要烦得要昏过去

    2021-04-18 22:34:47
好帮手慕星星 2021-03-26 10:56:18

同学你好,从上传的内容中可以看到删除报错了,可能是网络的问题。

建议使用cnpm uninstall vue-cli -g 命令删除,然后重启电脑再看看。如果还是有问题的话,建议直接升级 npm install -g @vue/cli ,一般会进行覆盖的

祝学习愉快!

  • 提问者 幕布斯3322991 #1

    好像还是不太行

    尝试直接用vue create travel 来干,提示如下

    ​wanglimindeMacBook-Air:Desktop wanglimin$ vue create travel

    vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6.
    You may want to run the following to upgrade to Vue CLI 3:

    npm uninstall -g vue-cli
    npm install -g @vue/cli

    之前用cnpm uninstall vue-cli -g 是提示

    -bash: cnpm: command not found


    是不是还需要安装下 cnpm这个工具先?怎么安装呢?


    2021-04-18 07:41:21
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星

相似问题

登录后可查看更多问答,登录/注册

请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师