Menu icon Foundation
Can't get foundation new project --libsass to work on OSX and Win8.1

Hi guys,

Been at it for 2 days, at work I'm on a Win 8.1 machine and home I'm on a OSX Yosemite machine.

When I'm trying to run the command at work (win) the following happens.
Installing dependencies with bower ... and nothing more

When I'm trying to run the command from my place (osx) the following happens.

Daniels-MBP:code Hixen$ foundation new foundation-sass --libsass
Creating ./foundation-sass
      create  foundation-sass
Cloning into 'foundation-sass'...
remote: Counting objects: 173, done.
remote: Total 173 (delta 0), reused 0 (delta 0), pack-reused 173
Receiving objects: 100% (173/173), 235.17 KiB | 0 bytes/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.
Installing dependencies with bower...
         run  npm install from "./foundation-sass"
npm WARN package.json [email protected] No repository field.
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.34
npm ERR! npm  v2.5.1
npm ERR! path /Users/Hixen/.npm/caseless/0.9.0
npm ERR! code EACCES
npm ERR! errno 3

npm ERR! Error: EACCES, mkdir '/Users/Hixen/.npm/caseless/0.9.0'
npm ERR!  { [Error: EACCES, mkdir '/Users/Hixen/.npm/caseless/0.9.0']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/Hixen/.npm/caseless/0.9.0',
npm ERR!   parent: 'request' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Hixen/Documents/code/foundation-sass/npm-debug.log
         run  grunt build from "./foundation-sass"
Loading "sass.js" tasks...ERROR
>> Error: Cannot find module 'node-sass'
Warning: Task "sass" not found. Use --force to continue.

Aborted due to warnings.
./foundation-sass was created

Been reading several fixes for both system, been following various installation methods, but now I'm just curious, why can't I get it to work.

OSX setup:
bower 1.3.12
git 1.9.3
ruby 2.2.0p0
npm 2.5.1
node v0.10.34
my connection is 100 mbit

Win setup:
(will update tomorrow at work)

Just glad if anyone can point me in the right direction.

installationlibsassSasswinOSX

Hi guys,

Been at it for 2 days, at work I'm on a Win 8.1 machine and home I'm on a OSX Yosemite machine.

When I'm trying to run the command at work (win) the following happens.
Installing dependencies with bower ... and nothing more

When I'm trying to run the command from my place (osx) the following happens.

Daniels-MBP:code Hixen$ foundation new foundation-sass --libsass
Creating ./foundation-sass
      create  foundation-sass
Cloning into 'foundation-sass'...
remote: Counting objects: 173, done.
remote: Total 173 (delta 0), reused 0 (delta 0), pack-reused 173
Receiving objects: 100% (173/173), 235.17 KiB | 0 bytes/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.
Installing dependencies with bower...
         run  npm install from "./foundation-sass"
npm WARN package.json [email protected] No repository field.
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.34
npm ERR! npm  v2.5.1
npm ERR! path /Users/Hixen/.npm/caseless/0.9.0
npm ERR! code EACCES
npm ERR! errno 3

npm ERR! Error: EACCES, mkdir '/Users/Hixen/.npm/caseless/0.9.0'
npm ERR!  { [Error: EACCES, mkdir '/Users/Hixen/.npm/caseless/0.9.0']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/Hixen/.npm/caseless/0.9.0',
npm ERR!   parent: 'request' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Hixen/Documents/code/foundation-sass/npm-debug.log
         run  grunt build from "./foundation-sass"
Loading "sass.js" tasks...ERROR
>> Error: Cannot find module 'node-sass'
Warning: Task "sass" not found. Use --force to continue.

Aborted due to warnings.
./foundation-sass was created

Been reading several fixes for both system, been following various installation methods, but now I'm just curious, why can't I get it to work.

OSX setup:
bower 1.3.12
git 1.9.3
ruby 2.2.0p0
npm 2.5.1
node v0.10.34
my connection is 100 mbit

Win setup:
(will update tomorrow at work)

Just glad if anyone can point me in the right direction.

Daniel Nyman over 4 years ago

Solution for Windows 8.1

There is a problem with the latest release of nodejs. So do the following.

  1. Uninstall nodejs (restart computer)
  2. Install http://nodejs.org/dist/v0.10.9/node-v0.10.9-x86.msi (restart computer)
  3. open cmd, run "npm install npm -g"
  4. remove npm and npm.bat from C:\Program Files (x86)\nodejs (this will make your C:\Users\yourusername\AppData\Roaming\npm trigger instead)

get the latest version of ruby and git.

this will give you the following versions:
node 0.10.9
npm 2.6
ruby 1.9.3p551
git 1.9.5

I did follow these instructions:
http://foundation.zurb.com/forum/posts/11597-how-to-install-grunt-and-libsass-on-windows

step 7. it's C.\DevTools\bower\apps
step 8. run cmd as administrator
step 11. it's C:\DevTools\Bower\apps not C:\DevTools\Bower\app
step 13. run cmd as administrator
step 14. if you have problems with this, close cmd and don't run it as administrator
step 16. run cmd as administrator

Source:
http://stackoverflow.com/questions/28392450/stuck-on-installing-dependencies-with-bower-foundation-new

Hope this helps, will try to get it to work on my OSX when I get home

Randall Rodrigues over 4 years ago

I'm having a similar but different problem getting Foundation 5 to work with --libsass on OS X:

I'm running:
OS 10.10.2
node v0.12.0
git 2.0.1
bower 1.3.12
grunt-cli 0.1.13
grunt-sass 0.18.0
node-sass 2.0.1
npm 2.6.0

I also have libsass ans sassc installed via homebrew.

randmans-Mac-Pro:wp_themes randallrodrigues$ foundation new test --libsass
Creating ./test
create test
Cloning into 'test'...
remote: Counting objects: 173, done.
remote: Total 173 (delta 0), reused 0 (delta 0), pack-reused 173
Receiving objects: 100% (173/173), 235.17 KiB | 0 bytes/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.
Installing dependencies with bower...
run npm install from "./test"
npm WARN package.json [email protected] No repository field.
\
> [email protected] install /Users/randallrodrigues/websites/wp_themes/test/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /Users/randallrodrigues/websites/wp_themes/test/node_modules/node-sass/vendor/darwin-x64/binding.node

[email protected] postinstall /Users/randallrodrigues/websites/wp_themes/test/node_modules/node-sass
node scripts/build.js

darwin-x64 exists; testing
module.js:355
Module._extensionsextension;
^
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/randallrodrigues/websites/wp_themes/test/node_modules/node-sass/lib/index.js:181:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.6.0
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/randallrodrigues/websites/wp_themes/test/npm-debug.log
run grunt build from "./test"
Loading "sass.js" tasks...ERROR
>> Error: Cannot find module 'node-sass'
Warning: Task "sass" not found. Use --force to continue.

Aborted due to warnings.
./test was created

Any insight would be greatly appreciated.

Thanks,

Randy

Rafi Benkual over 4 years ago

running sudo npm install grunt-cli -g worked for me

Marco Poletto over 4 years ago

Had same problem!

I solved installing nodejs v0.10.33

Rafi Benkual over 4 years ago

It seems there is an issue with the newer version of node-sass https://github.com/sass/node-sass/issues/653

@marco - glad you got it!

We resolved it here by updating our package.json to use node-sass 1.0.0

{
  "name": "foundation5-marketing",
  "version": "0.0.1",
  "devDependencies": {
    "assemble": "0.4.18",
    "grunt": "~0.4.1",
    "grunt-clean": "~0.4.0",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-concat": "~0.3.0",
    "grunt-contrib-copy": "~0.4.1",
    "grunt-contrib-jst": "~0.5.1",
    "grunt-contrib-watch": "~0.6.1",
    "grunt-rsync": "~0.2.1",
    "grunt-sass": "^1.0.0",
    "highlight.js": "~7.3.0"
  }
}