Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

npm install issues #861

Closed
joewellmade opened this issue Jul 25, 2016 · 5 comments
Closed

npm install issues #861

joewellmade opened this issue Jul 25, 2016 · 5 comments

Comments

@joewellmade
Copy link

Hi, I'm having problems installing npm. Is anyone else having problems. Screenshot attached.

Thanks,
Joe
screen shot 2016-07-25 at 14 22 58

@joewellmade
Copy link
Author

It seems I have to use 'sudo' to run anything and there is still an error:

'Error: File to import not found or unreadable: ../../components/foundation-sites/scss/util/util
Parent style sheet: /Applications/MAMP/htdocs/cuttest/wp-content/themes/FoundationPress/assets/scss/global/_settings.scss
on line 43 of assets/scss/global/_settings.scss

@import '../../components/foundation-sites/scss/util/util';'

@Luciaisacomputer
Copy link
Contributor

What version of Node/NPM are you running?

@joewellmade
Copy link
Author

Thanks Luke, here's the version info:

node -v
v4.4.4

npm -v
2.15.1

@Luciaisacomputer
Copy link
Contributor

Luciaisacomputer commented Jul 26, 2016

So the first thing I would do is fix NPM permissions:
https://docs.npmjs.com/getting-started/fixing-npm-permissions

Then I would remove the node_modules folder completely. Try npm install after that.

Anytime I have had issues with FoundationPress, it was usually when I installed Node/NPM on a new computer, and didn't install it with the correct permissions. Other than that, sometimes the version of node was out of date and updating it fixed that as well.

@joewellmade
Copy link
Author

Amazing, thanks Luke, I changed the permissions and that's fixed it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants