Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with gulp watch #6

Closed
starchild opened this issue Jan 24, 2019 · 6 comments
Closed

issues with gulp watch #6

starchild opened this issue Jan 24, 2019 · 6 comments

Comments

@starchild
Copy link

I'm trying really hard to get this gulp thing working, but just can't seem to do it.

I think you'll have a better take up if this initial part of the set up is made a bit clearer.

  • when I run 'npm run gulp watch' from the 'my_project/node_modules/codyhouse-framework' path,
    I get a whole bunch of errors, despite having followed the instructions on https://css-tricks.com/gulp-for-beginners/

have I run it from the wrong path maybe?

node --version
v10.15.0

gulp -v
[16:47:04] CLI version 2.0.1
[16:47:04] Local version 4.0.0

@dfpera
Copy link

dfpera commented Jan 24, 2019

Did you run npm install before running npm run gulp watch?

That's the first thing that comes to mind when you say you are getting a lot of errors. That is because you need to "install" the packages before you can use them, one of those packages being "gulp".

@starchild
Copy link
Author

starchild commented Jan 24, 2019

yes i did:

sudo npm install gulp -g
npm install gulp-sass --save-dev
npm install
npm run gulp watch

Can you confirm if I have missed anything?
Can you also please confirm what path these should be run from?

Thanks!

@dfpera
Copy link

dfpera commented Jan 24, 2019

First off you don't need

sudo npm install gulp -g
npm install gulp-sass --save-dev

These are both already included in the package.json with this project and will install during npm install. The following is what I ran to get this working.

cd <path_to_project>/codyhouse-framework
npm install
npm run gulp watch

That's it, if you have further issue please post your errors.

@starchild
Copy link
Author

starchild commented Jan 24, 2019

yes, ok great - I;ve worked this out now.... and it seems to be working, but now generating the following error, which has to do with what I followed in the demo youtube video for the _table.scss

[17:08:20] Starting 'sass'...
Error in plugin "sass"
Message:
main/assets/css/_components.scss
Error: File to import not found or unreadable: table.
on line 2 of main/assets/css/_components.scss
from line 2 of main/assets/css/style.scss

@import 'table';
^

[17:08:20] Finished 'sass' after 15 ms

** line 2 of that file is as follows:
@import 'table';

@starchild
Copy link
Author

edit: i fixed it! . my _components.scss had:

@import 'table';

instead of:

@import 'components/table';

Thank you for your help :)

@dfpera
Copy link

dfpera commented Jan 24, 2019

Awesome glad to hear. Guess we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants