Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create a new project with Foundation CSS

I'm just started with Foundation CSS framework. All installation was fine, but when I'm trying to create my first project, I received this error.

foundation new
/usr/local/lib/node_modules/foundation-cli/lib/commands/info.js:7
module.exports = function(args = {}) {
                               ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/foundation-cli/lib/index.js:4:9)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

Thanks all.

like image 835
bosspetta Avatar asked May 26 '17 18:05

bosspetta


People also ask

Which is better Foundation or bootstrap?

Simply put, Foundation offers a slightly more complex, but a do it yourself style approach that will create something more unique and custom. Whereas Bootstrap allows for easy creation of simple yet elegant websites, with very little knowledge of CSS and JavaScript.

Is Foundation CSS Free?

Foundation is a free and open-source responsive front-end framework, providing a responsive grid and HTML and CSS UI components, templates, and code snippets, including typography, forms, buttons, navigation and other interface elements, as well as optional functionality provided by JavaScript extensions.

What is Foundation ZURB?

Foundation has its roots in the ZURB style guide, a collection of HTML, CSS and Javascript that helped us quickly design amazing websites. It's now used by millions of designers and developers and powering some of the biggest and most popular sites on the web.

What is Foundation front-end?

Foundation is a family of responsive front-end frameworks that make it easy to design beautiful responsive websites, apps and emails that look amazing on any device. Foundation is semantic, readable, flexible, and completely customizable.


1 Answers

It looks like your nodejs is outdated. Check what version you're running. If it's older than 6, ugrade and remove the older version. It should work.

like image 84
Morgan Edwards Avatar answered Sep 28 '22 08:09

Morgan Edwards