Help Starting Over #12431
-
I am returning to Foundation after an abscence of about 2 two years. My last project was with Version 6.3. A lot has changed with the packages used for installationit seems. I am on the latest release of Win 10 Pro Version 21H2 OS build 19044.1706. I used Powershell in administrator mode. I hope someone can help me out. Thanks for your attention. Here is the log of my latest attempt to install. PS K:\0newfoundation> git --version changed 192 packages, and audited 435 packages in 1m 34 packages are looking for funding 3 vulnerabilities (2 moderate, 1 high) To address all issues, run: Run up to date, audited 1 package in 658ms found 0 vulnerabilities PS K:\0newfoundation> foundation new
|| || Let's set up a new project. Downloading the project template... Installing dependencies... undefined There were some problems during the installation. ✓ New project folder created. Once you've resolved the above issues, run foundation watch while inside the test-it folder. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Forgot about "foundation new" use "npm start". And use "nvm use 14" // node 14 |
Beta Was this translation helpful? Give feedback.
-
What I found that finally works: Ensure nvm is installed and available on path. nvm install 14 # because foundation doesn't work with node 16 yet.
nvm use 14
npm install --global foundation-cli
foundation new --framework sites --template panini --directory my-project
# Or (basic templates instead of panini)
foundation new --framework sites --template basic --directory my-project
cd my-project
nvm use 14 # because it switches back to whatever your default is when you cd (in my case node 16).
node -v > .nvmrc # ensure node 14 is used when you cd into the project in the future.
yarn install -std=c++14 # on recent MacOS GCC has problems compiling node-sass, ymmv.
yarn start # or npm start The foundation site should be launched on your local system, available in a web browser at http://localhost:8000 |
Beta Was this translation helpful? Give feedback.
-
Thanks to guci0 for his help and to jameswilson for expanding on that answer. Running under NVM control works. One further question: Is Python 2 really still necessary? I believe I saw somewhere in the Node docs that Python 3.?? was enough. |
Beta Was this translation helpful? Give feedback.
What I found that finally works:
Ensure nvm is installed and available on path.
Ensure python2 is installed and available on path.
(On Mac) Ensure ComandLineTools for XCode is installed, so you can compile node-sass via node-gyp: