Menu icon Foundation
Install Foundation 5 on a Mac failed ... !?

Everything went well till the terminal command 'foundation new MY_PROJECT' ... see log (code) ... what's happening here? And what have I to do? Thanks for any help.

mbpvanjochem3:~ Jochem$ foundation new MY_PROJECT
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/bin in PATH, mode 040777
Creating ./MY_PROJECT
      create  MY_PROJECT
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir': Permission denied - /Users/Jochem/MY_PROJECT (Errno::EACCES)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:219:in `block (2 levels) in mkdir_p'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `reverse_each'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `block in mkdir_p'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in `each'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in `mkdir_p'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:51:in `block in invoke!'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:117:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:117:in `invoke_with_conflict_check'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:50:in `invoke!'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:95:in `action'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:15:in `empty_directory'
	from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:126:in `new'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/bin/foundation:4:in `<top (required)>'
	from /usr/bin/foundation:23:in `load'
	from /usr/bin/foundation:23:in `<main>'
            

         

MacOS Xinstallterminal

Everything went well till the terminal command 'foundation new MY_PROJECT' ... see log (code) ... what's happening here? And what have I to do? Thanks for any help.

mbpvanjochem3:~ Jochem$ foundation new MY_PROJECT
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/bin in PATH, mode 040777
Creating ./MY_PROJECT
      create  MY_PROJECT
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir': Permission denied - /Users/Jochem/MY_PROJECT (Errno::EACCES)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:219:in `block (2 levels) in mkdir_p'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `reverse_each'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `block in mkdir_p'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in `each'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in `mkdir_p'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:51:in `block in invoke!'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:117:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:117:in `invoke_with_conflict_check'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:50:in `invoke!'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:95:in `action'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:15:in `empty_directory'
	from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:126:in `new'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
	from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/bin/foundation:4:in `<top (required)>'
	from /usr/bin/foundation:23:in `load'
	from /usr/bin/foundation:23:in `<main>'
            

         
Rafi Benkual over 5 years ago

It's not clear from your question what the issue is. First you will want to install:
Git - http://git-scm.com/book/en/Getting-Started-Installing-Git
Ruby 1.9+ - (you are covered here)
NodeJS http://nodejs.org/download/

Then watch this video to get you through the rest:
http://foundation.zurb.com/learn/video-started-with-foundation.html

Joop Vos over 5 years ago

Thanks @Rafi for joining in ...

I did everything by the book (video) and this is what I get:

  • bower.json
  • config.rb
  • humans.txt
  • index.html
  • /js
  • readme.md
  • robots.txt
  • /scss

... but where are these folders:

  • /bower-components (foundation, jquery, modernizr)
  • /img

... !?

There are some errors (terminal) after creating the (foundation) folder:

 Creating ./foundation02
      create  foundation02
remote: Reusing existing pack: 66, done.
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 72 (delta 1), reused 5 (delta 0)
Unpacking objects: 100% (72/72), done.
Installing dependencies with bower...

/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:74
                    throw err0;
                          ^
Error: EACCES, permission denied '/Users/Jochem/.cache'
    at Object.fs.mkdirSync (fs.js:642:18)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:55:12)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at Function.sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at new Cache (/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/util/Cache.js:21:16)
    at RegistryClient.<anonymous> (/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/lookup.js:159:35)
    at Array.forEach (native)
    at RegistryClient.initCache (/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/lookup.js:146:34)
/Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `read': No such file or directory - /Users/Jochem/Websites/foundation02/bower_components/foundation/scss/foundation/_settings.scss (Errno::ENOENT)
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `block (2 levels) in new'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `open'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `block in new'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:182:in `block in inside'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in `chdir'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in `cd'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:182:in `inside'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:128:in `new'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/bin/foundation:4:in `<top (required)>'
  from /usr/bin/foundation:23:in `load'
  from /usr/bin/foundation:23:in `<main>'

... any help is appreciated.

Vincent Pigoreau over 5 years ago

Did you install Bower globally?

 npm install -g bower

Joop Vos over 5 years ago

Yep, I think so ...

  • cd websites
  • sudo npm install -g bower
  • sudo gem install foundation
  • foundation new foundation03

... the last one gives errors when:

... Installing dependencies with bower...

/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:74
                    throw err0;
                          ^
Error: EACCES, permission denied '/Users/Jochem/.cache'
    at Object.fs.mkdirSync (fs.js:642:18)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:55:12)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at Function.sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:61:24)
    at new Cache (/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/util/Cache.js:21:16)
    at RegistryClient.<anonymous> (/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/lookup.js:159:35)
    at Array.forEach (native)
    at RegistryClient.initCache (/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/lookup.js:146:34)
/Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `read': No such file or directory - /Users/Jochem/Websites/foundation03/bower_components/foundation/scss/foundation/_settings.scss (Errno::ENOENT)
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `block (2 levels) in new'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `open'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `block in new'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:182:in `block in inside'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in `chdir'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in `cd'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:182:in `inside'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:128:in `new'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
  from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
  from /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/bin/foundation:4:in `<top (required)>'
  from /usr/bin/foundation:23:in `load'
  from /usr/bin/foundation:23:in `<main>'

... !?

Joop Vos over 5 years ago

For now I give up ... it will be solved over time I hope. Instead I've installed Mixture (www.mixture.io) ... realy great app ... installs F5 ... all of it ... :))

André Martins over 4 years ago

I had the same problem.

My solution was to 'chmod 777 -R' my .cache folder and create a new project.