Problems logged when you install a Mac down Vue environment

Source: Internet
Author: User
Tags gz file install node

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.