-
Notifications
You must be signed in to change notification settings - Fork 867
Loading "sass.js" tasks...ERROR #209
Comments
cd to directory then sudo gem cleansudo gem install foundationsudo npm install -g bower grunt-clisudo npm installgrunt buildgrunt / grunt serve / grunt watchAlso build and grunt may require you to not be login in a su |
Thanks for your quick answer. |
#sudo npm uninstall npm -g #sudo apt-get install nodejs nodejs-dev npm |
apt-get: command not found ..... is it really such a complicated thing to just get that node-grunt-whatever-stuff running? im getting desperate -.- ...but looking forward for more help ^^ |
what OS are you using... apt-get is Ubuntu/Debian there should be a simlar command for your OS ie. https://github.com/joyent/node/wiki/installing-node.js-via-package-manager |
"Btw im using a Mac if that matters." |
» OSx Yosemite (10.10.2) But i dont know what this problem could have to do with my node.js installation cause i downloaded the current version of it. So a reinstallation by terminal probably wont solve this problem or am i wrong? |
I think the recommended way to install Node.js for Mac is the installer from http://nodejs.org/download/ It's the suggested way here for example: http://coolestguidesontheplanet.com/installing-node-js-on-osx-10-10-yosemite/ and the Read Me for FoundationPress says the same thing. |
then i should be on the right way. on "echo $PATH" it says: but what now? still got the error message on "grunt build":
Aborted due to warnings. |
I just made a complete new repo clone to get everything new and clear. I got stuck at this point: npm install && bower install && grunt build
Binary downloaded and installed at /Users/rowphant/Web/htdocs/wordpress_40_de/wp-content/themes/FoundationPress-Git/node_modules/node-sass/vendor/darwin-x64/binding.node
npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: |
I have the same issue...on one of my two computers. The only difference is the the versions of npm on each of my machines. The version that works is 1.4.28 and the version that doesn't work is 2.5.1. I look around and see that node-sass module was an issue but many are saying that it was fixed. I don't know what to do at this point, either. If I knew how to roll back my npm to 1.4.28 I would. That particular version isn't available anymore. I just switched my project over to Codekit to get it out the door but I am tuned into this issue. |
Thats what I read on another website too, there were issues with the current version. ....Well great! :D |
Have you tried |
i've tried Got stuck here again. :S |
i tried to rollback node by "Node Version Manager" (https://github.com/tj/n) and tried several older versions of node with NO success.... -.- |
It's the same problem I've got, but on windows platform. |
Isnt there any alternative to bypass this annoying issue but compile the js and css files though? Several forums are full with people discussing about that node-sass thing. Some say it worked with a downgrade of Node others are still having the problem. This clearly shows that no one really seems to have a clue. How is this possible? |
First, it is usually not this complicated. I have not tried to set up a new FoundationPress theme recently, but it has worked well for me before. It is easy and a blessing when it works. But this is a world where everything is moving forward and sometimes it is not as stable as it should. For a period there were some complicated issues with Foundation moving to a more recent version of SASS that libsass (the much faster, but often behind, SASS compiler) did not support and caused a lot of trouble (as can be seen in the list of previous issues here). I pulled my hair trying to temporary switch to compass but gave up. (On top of that FoundationPress has not been very stable lately. I don't wanna sound too harsh but there where a bunch of pull request recently that were not very well prepared (containing obvious errors if you just looked at the diff, like dashes on every line) that quickly got merged into master without proper audit causing FoundationPress to throw errors.) |
Hi guys, Can those of you who are experiencing problems with FoundationPress install do a Cheers. |
Hi Olefredrik! |
Hi. Can you please run a |
npm 2.5.1 |
node v0.12.0 |
npm 1.4.3 |
Hi, I'm using node v0.12.0 and npm 2.5.1 on win 7. I followed the instructions on the foundationpress github page: cd my-wordpress-folder/wp-content/themes/ and I get the error: 15456 error Windows_NT 6.1.7601 After following the instructions at the beging of this thread: sudo gem clean I get the same error. |
I've solved installing nodejs version 0.10.33 (Stable) 2014.10.20 and git. Launching 'npm install && bower install && grunt build' from git now it works. I hope this can help. |
I have now spent some time to understand the problem. And I've come up with a solution that works. Previously I have not had any problem setting up Foundation or FoundationPress with grunt and libsass. But my dev environment have run an older version of node (v.0.10.33 to be exact). I cleared my npm cache and updated node to latest stable version. And yep, I got the same error as you did. So I went to foundation.zurb.com to download the latest foundation libsass version available. Guess what? It failed. Which tells me that the error is not exclusive for FoundationPress, but a general issue somewhere between libsass and last version of the node. Anyway. What you should do to get everything to work as normal, is to roll back node to v.0.10.33. It's quite simple. Here is what you do: On Linux or Mac: On Windows: Voila! Can you try this and post a comment back if this does the trick? (cc @rowphant , @joshsmith01) |
It works!
|
@olefredrik |
@rowphant : Nice 👍 |
@olefredrik |
@mariuskroh |
Working with node v0.10.33 npm 2.5.1. Nice one! |
I get this error trying all steps above
|
I had this working last night, following the instructions to re-set node. This morning, I get this:
Running "watch" task
Loading "sass.js" tasks...ERROR
Aborted due to warnings. Node V0.12.0, npm V2.5.1, Windows 7 and Wampserver |
I got it working after updating gruns-sass and node-sass to latest versions and changed my Grunfile to reflect that. https://github.com/sass/node-sass |
Thanks, I will try that. But what confuses me, is that it was working last night! And I changed nothing, but I got those error messages. |
I tried your suggestions re node-sass and grunt-sass. But where / what is the gruntfile? |
Sorry were mixing up my drupal and wordpress foundation themes :) Dint do any changes to gruntfile.js but made sure the changes to the version so they were correct in package.json Also I followd all the bold stuff in post number two. |
@dogseven once once you follow these directions: npm install -g nvmw every time you want to run the grunt task enter: nvmw use v0.10.33 This in my exprience (and I'm a complete and utter noob) forces it to use this version. It's working for me (win7 - mamp). Hope this helps! |
I got an error message after grunt watch, then (as expected) got one when I changed _settings.scss C:\develop4\wordpress\www\wp-content\themes\fp2>grunt watch
Running "watch" task
Loading "sass.js" tasks...ERROR
Aborted due to warnings.
|
Solved. I was also not sure until I read foundation/foundation-libsass-template#16 and figured out that (as @olefredrik has explained) node-sass has issues. Simply open package.json and change to "node-sass" : "~0.9.6" (should be compatible) from whatever version is there. In my case it was 1.2.3. Hope this helps somebody. |
@kapil0110 This worked for me (without having to tell it which version to use everytime I open cmd). Thank you! |
Didn't work for me (:-< C:\develop4\wordpress\www\wp-content\themes\fp2>grunt watch
Running "watch" task
Loading "sass.js" tasks...ERROR
Aborted due to warnings.
C:\develop4\wordpress\www\wp-content\themes\fp2>grunt watch
Running "watch" task
Loading "sass.js" tasks...ERROR
Aborted due to warnings.
I have package.json as follows: Please help, before I have to go back to CSS and Cut and Paste! |
Working fine about a week ago...but now it is displaying this error: npm ERR! [email protected] install: 'node scripts/install.js' Also, when i do the nvmw use v0.10.33 "C:\Users...\AppData\Roaming\npm\node_modules\nvmw...." install v0.10.33 'reg' is not recognized as an internal or external command,....This is kind of frustrating now. Time supposedly spent with the web development is now spent to this frustrating errors. I really like FoundationPress and the use of SASS instead of vanilla CSS. Is there any better alternative so we can still enjoy FoundationPress and SASS, with less of these unstable issues? Thanks for any input. I'm using wamp, win7 (x64). |
@Strutsagget |
Trying to get FoundationPress (version < 1.5) running on my old MacBook Pro, I never saw so many error messages.
I decided to do the following after looking into the error message created by Install grunt-sass & node-sass globally run run delete or rename the node_modules directory from your development environment go to your foundationpress directory run Then go to your globally installed grunt-sass & node-sass copy (not move) run run change a .scss file and save it and sass will run. By the way, the new 1.5 version of FoundationPress did work ok. |
Well, had the same problem today. Only worked with a clean FoundationPress install using node 0.10.33. If you installed FP with another version, it'll get messy. My recommended fix for Mac: On terminal: Install Homebrew Install nvm (Node Version Manager) Install and use v0.10.33 Install FoundationPress Run watch and be happy Hope this helps. |
I found this error myself earlier today and after much frustration and hair pulling, I finally think I have found the source of this problem (at least on Mac OS) It turned out that after updating to El Capitan I had not reinstalled Xcode and the command line tools that go with it. So I went back waited for Xcode to download and installing this error finally went away. |
sudo gem clean These commend is really working.. thanks for share. |
When im running "grunt build" in the terminal i just get a
"Loading "sass.js" tasks...ERROR".
Error: Cannot find module 'node-sass'
Warning: Task "sass" not found. Use --force to continue.
So i can not use grunt to merge all the files.
I can do "grunt build -force", which works but that not the solution of this problem. ;)
Im quite new to all that grunt stuff, so i dont get it. Any solutions for this problem?
Btw im using a Mac if that matters.
The text was updated successfully, but these errors were encountered: