0

I'm using example from documentation https://vuejs-templates.github.io/webpack at Windows.

Very simple:

$ npm install -g vue-cli
$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run dev

And when i run npm install it fails with error:

1715 http fetch GET 200 https://registry.npmjs.org/loose-envify 1ms (from cache)
1716 silly fetchPackageMetaData error for loose-envify@^1.0.0 Unexpected end of input at 1:1370
1716 silly fetchPackageMetaData s":{},"dist":{"shasum":"6b26248c42f6d4fa4b0d8542f78edfcde35642a8","ta
1716 silly fetchPackageMetaData                                                                      ^
1717 verbose stack SyntaxError: Unexpected end of input at 1:1370
1717 verbose stack s":{},"dist":{"shasum":"6b26248c42f6d4fa4b0d8542f78edfcde35642a8","ta

I'm very new to js. I understand that some packages can't load but I don't know what to do with this.

2
  • Try npm cache clean --force Commented Jun 7, 2018 at 18:40
  • @kichik it worked. Thanks a lot! Commented Jun 7, 2018 at 18:50

1 Answer 1

2

Looks like npm has cached a bad response. Try cleaning the cache with:

npm cache clean --force
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.