Help! Caught in command line hell trying to get Foundation working again! #12340
-
I love Foundation and have been using it exclusively for years. What I don't love, and frankly get completely lost in is all the command line installations and updates required to keep it running. 6 months ago I did a fresh install on a new MacBook M1. After much beating my head against the wall, I managed to find the right combo of installs and versions to get it working again. But now, alas, I keep running into errors with "foundation watch" and so I tried a clean install of many of the dependencies, but I'm in a looping hell of errors in the command line. I google the error, find some supposed answer and run it. Which gets me a different error and so and and so on... As said, I'm on a Mac M1 running Big Sur 11.6.1. Running the command line "foundation new" I get the following:
Running "foundation watch" I get the following:
I've confirmed I have node installed so I don't understand why it's saying I don't. What version of node should I be running? What I'd really love is to hire someone out there to help me through this mess in a screen share, as I've been running various 'fixes' for a couple hours which seem to change the errors, but I still get the errors. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 91 replies
-
I'm like you - hate CLI, love foundation! I take the very easiest way - from https://get.foundation/sites/docs/installation.html I download the "starter template". (Button marked "'Download Foundation", above the section on CDN Links. There is nothing else required. Replace with same for each update. Or, from github grab the 'dist' folder. It has the same files - just css and js. |
Beta Was this translation helpful? Give feedback.
-
Basically yes, although I'm not that bothered about functions not required in my project. They don't take up significant resource. |
Beta Was this translation helpful? Give feedback.
-
Have you tried using node v11 ? |
Beta Was this translation helpful? Give feedback.
-
Still struggling. Tried fresh installs of 11 12 and 14 and then install foundation, still getting that same syntax error. Only though GitHub foundation page shows the latest release being 6.7.4, but running "npm --v foundation-cli" I'm showing 6.14.15 which I find no documentation for. |
Beta Was this translation helpful? Give feedback.
-
A little more information... I just realized the problem probably started a few weeks back when I did a reinstallation of the MacOS. |
Beta Was this translation helpful? Give feedback.
-
Still getting that same syntax error noted above no matter what node I install. I need my Foundation back! Any help anyone could provide would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
@DanielRuf Thanks, I tried that but I get errors trying to run |
Beta Was this translation helpful? Give feedback.
-
I am trying to follow where things currently are with this thread. I currently have node v14.18.1 installed on my Intel Mac running MacOS 12.0.1. I personally use homebrew to install node. Let's get Assuming that you have node 14 and yarn installed... If you want the Basic Sites Template git clone https://github.com/foundation/foundation-sites-template.git
cd foundation-sites-template
rm -rf .git
yarn install If you want the Panini based Site Builder Template git clone https://github.com/foundation/foundation-zurb-template.git
cd foundation-zurb-template
rm -rf .git
yarn install Let me know which you have tried and what errors you are getting now. I have access to an M1 Mac. However, it's my wife's Mac and therefore has zero development tools installed. |
Beta Was this translation helpful? Give feedback.
-
@adventdesignllc Here's the versions of what I'm running, note that I'm running on the latest Mac OS Monterey 12.01: Node: v14.18.2 Did you try following the steps for a fresh site using @joeworkman's original post? I followed those and it is working, and then I was able to try on one of my existing sites and that worked too. Other than that I'm not too clear on what else could be different. Are you definitely using Node 14? It looks like it as it's mentioned amongst the errors you posted but you can check using |
Beta Was this translation helpful? Give feedback.
-
Well, I left well enough alone and limped along with the really slow processing, but now I need to do some major fresh builds so I took another whack at getting this thing working properly, and I'm finally able to say its working perfectly! Processing in 800 ms now instead of 18 s! I went through updating everything one by one. I don't believe I actually had the Xcode command line tools installed, which must have been part of the problem. I upgraded from MacOS 11 to 12 as well, which might have played a roll. Here's what I have: I'm using:
to create a new project and
Compiling in well under 1s. |
Beta Was this translation helpful? Give feedback.
Well, I left well enough alone and limped along with the really slow processing, but now I need to do some major fresh builds so I took another whack at getting this thing working properly, and I'm finally able to say its working perfectly! Processing in 800 ms now instead of 18 s!
I went through updating everything one by one. I don't believe I actually had the Xcode command line tools installed, which must have been part of the problem. I upgraded from MacOS 11 to 12 as well, which might have played a roll.
Here's what I have:
NPM: 8.1.4
NVM: 0.38.0
Node: 14.18.1
Yarn: 1.22.17
Xcode: 13.2.1
MacOS: 12.1
I'm using:
git clone https://github.com/foundation/foundation-sites-template.git cd f…