-
Notifications
You must be signed in to change notification settings - Fork 867
Error while running npm run watch #375
Comments
Does your bower_components folder exists in the theme root? If not, try: npm install -g bower |
Hi.. I'm having the same issue: Running "watch" task
Running "sass:dist" (sass) task
Aborted due to warnings. I followed @altjon 's directions but still get the error. |
It looks as if Grunt is struggling to find bower_components files. If you followed the instructions step by step, it should work. Check that your bower_components folder is in your projects. Then, check that the path of the bower_components folder is correct relative to the @import statements in app.less. I plan to make a new installation screencast over the next few days. |
Problem solved It's my fault. I edit the wrong scss files, that's why npm always say Thanks
|
👍 |
@krisnaw Hi, I'm having a similar issue, what scss files were you editing that caused your error? If you don't mind sharing. :-) Thanks. |
@RachelRVasquez : What error do you get? |
@olefredrik I've put all the details in a recent issue, but basically the same error. The bower_components folder not found/unreadable. |
@RachelRVasquez : Line 15-51 in foundation.scss is referencing the various foundation components, located in the bower_components folder. Have you checked that the bower_components folder is present on your disk? |
@olefredrik As I mentioned in #379, it is not present after I ran all the commands I needed to in terminal from the "Quick Start" instructions. I was confused whether this was a folder that was going to put itself there during the setup process or if I was supposed to manually create these paths? I'd also repeated the process on a fresh install of FoundationPress in case it was something I did in my theme, but getting the same error. |
@RachelRVasquez : Anyway, this is what you could do: A) If you already have bower installed, you can do a B) If you don't have bower installed, you can first do a |
@RachelRVasquez : Nearly there. Now that you have bower installed globally (that's what you did in your last step), just type |
@olefredrik Yep that's what I did, but I think I'm having a permissions issue. I'm not familiar enough with chmod to try randomly inserting google code though. :-)
|
There's something weird going on here. This process will usually go smoothly. I recently purchased a new Macbook Pro. I installed Node.js and followed the quickstart step-by-step without any problems. So this is strange. In a way. Perhaps it may help to run a clean install of Node.js? Found this related issue with bower and permission errors: |
@olefredrik YES I GOT IT! Sorry for the caps, but this is so exciting haha what a relief! Also got another error right after when I ran Finally runs the watch without errors and also have my bower_components file there with all the files. Thank you so much. 👍 |
Yay, you made it! Awesome :) |
Hi there
So I already following your installation steps.
When I running this command "npm run watch", every single things that I change always got error notification in terminal and the command aborted.
Aborted due to warnings.
The text was updated successfully, but these errors were encountered: