olefredrik / FoundationPress

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb
https://foundationpress.olefredrik.com
MIT License
2.71k stars 871 forks source link

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

Open hassan184 opened 5 years ago

hassan184 commented 5 years ago

How can this bug be reproduced?

  1. Step one
  2. Step two
  3. Step three

What did you expect to happen?

What happened instead?

Please List the Following:

Include Test Case (if applicable):

hassan184 commented 5 years ago

C:\Users\Dell>npm install -g ionic npm ERR! Unexpected end of JSON input while parsing near '...isarguments/-/lodash.'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dell\AppData\Roaming\npm-cache_logs\2019-04-10T16_28_01_317Z-debug.log

C:\Users\Dell>npm install -g ionic npm ERR! Unexpected end of JSON input while parsing near '...isarguments/-/lodash.'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dell\AppData\Roaming\npm-cache_logs\2019-04-10T16_28_16_636Z-debug.log

C:\Users\Dell>npm install -g ionic npm ERR! Unexpected end of JSON input while parsing near '...isarguments/-/lodash.'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dell\AppData\Roaming\npm-cache_logs\2019-04-10T16_28_30_661Z-debug.log

C:\Users\Dell>npm install -g ionic npm ERR! Unexpected end of JSON input while parsing near '...isarguments/-/lodash.'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dell\AppData\Roaming\npm-cache_logs\2019-04-10T16_29_30_423Z-debug.log

hassan184 commented 5 years ago

how resolve this problem

pixelbrad commented 5 years ago

I suspect FoundationPress is not the issue here for a couple of reasons:

  1. You're trying to install a package globally.
  2. The package you're trying to install Is ionic, which, correct me if I'm wrong, is unrelated to FoundationPress.
  3. It appears you're running npm i -g ionic from what I believe is your user directory (i.e. not from a FoundationPress project folder).

You've not filled out any of the following: OS & version: Node version (node -v) [Node v6+ is required] : FoundationPress version (see line 3 in package.json): Foundation version (found in node_modules/foundation-sites/package.json) :

All of your CodePen test cases are basically empty.

If you're having trouble with Ionic, seek support from Ionic.