1. Problems When installing node using the Brew Install node command:
macbook-pro:~ zh$ Brew Install node
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz
Already downloaded:/users/zh/library/caches/homebrew/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz
Error: Checksum mismatch.
expected:f1db8863543d256e6a8e704bf618025030b3d22a7a6b19749d19f599b5554212
actual:d3843f61522afd7a5340aa055847e549ab5f3b0a8ffafab46b556d427b903131
Archive:/users/zh/library/caches/homebrew/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to upgrade vendor Ruby.
Workaround:
Delete: Re-run the Brew install node command after/users/zh/library/caches/homebrew/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz file
2. Installing the Vue times error no Pacakge.json file
zhaichuangdemacbook-pro:~ zhaichuang$ sudo npm install vue
Password:
NPM WARN saveerror enoent:no such file or directory, open '/users/zhaichuang/package.json '
NPM notice created a lockfile as Package-lock.json. You should commit the this file.
NPM WARN enoent enoent:no such file or directory, open '/users/zhaichuang/package.json '
NPM WARN Zhaichuang No Description
NPM WARN zhaichuang No repository field.
NPM WARN Zhaichuang No README data
NPM WARN zhaichuang No license field.
Workaround:
Delete Package-lock.json file under ~ (current directory ) , Run command: sudo npm install vue-g
3. When installing VUE-CLI, you encounter NPM err! Unexpected end of JSON input while parsing near ' ... prebuilt ': "^2.1.4", "P"
zhaichuangdemacbook-pro:~ zhaichuang$ sudo npm install vue-cli-g
NPM WARN deprecated [email protected]: Coffeescript on NPM have moved to "Coffeescript" (no hyphen)
NPM err! Unexpected end of JSON input while parsing near ' ... prebuilt ': "^2.1.4", "P"
NPM err! A Complete log of the This run can is found in:
NPM err! /users/zhaichuang/.npm/_logs/2018-06-01t14_24_54_473z-debug.log
WORKAROUND: Use the command NPM cache clean--force to clear the cache and then run the command: sudo npm i--global vue-cli installation succeeded
Problems logged when you install a Mac down Vue environment