jgthms / bulma-start

Start package for Bulma
https://www.npmjs.com/package/bulma-start
MIT License
277 stars 81 forks source link

Issues getting SASS to compile #3

Open cruelmelody opened 6 years ago

cruelmelody commented 6 years ago

Hey there,

I'm trying to get this framework up and running because it looks awesome and I really want to use it, however, I can't for the life of me figure out why my SASS isn't compiling. What I've done:

  1. npm install bulma
  2. npm install bulma-start
  3. cd to node_modules/bulma-start to run commands
  4. JS seems to build ok in the watch command, but the SASS compiling throws errors.
  5. Here's what happens when I try to run 'npm run css-deploy':

npm run css-deploy

bulma-start@0.0.2 css-deploy /Users/mkemp/Sites/procurement-intranet/wp-content/themes/taronga-intranet/node_modules/bulma-start npm run css-build && npm run css-postcss

bulma-start@0.0.2 css-build /Users/mkemp/Sites/procurement-intranet/wp-content/themes/taronga-intranet/node_modules/bulma-start node-sass _sass/main.scss css/main.css

sh: node-sass: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! bulma-start@0.0.2 css-build: node-sass _sass/main.scss css/main.css npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the bulma-start@0.0.2 css-build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mkemp/.npm/_logs/2018-02-16T03_30_04_263Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bulma-start@0.0.2 css-deploy: npm run css-build && npm run css-postcss npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bulma-start@0.0.2 css-deploy script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mkemp/.npm/_logs/2018-02-16T03_30_04_277Z-debug.log`

I checked the debug log and it doesn't really give much detail. FYI I'm running npm v.5.6.0 and I've also tried running the command as sudo.

Any ideas? I'm adding my custom SASS to _sass/_main.scss as intended. I've been banging my head up against the wall with this one and I'm sure it's a simple fix.

Much appreciated!

yusufsiregar44 commented 6 years ago

Hey @cruelmelody, I'm also a beginner in Bulma and also stumbled with the same issue earlier today. Have you tried running npm install at the root directory? It solved my issue.

frispete commented 6 years ago

Hey @cruelmelody, check out the Get your feet wet section to see, if that clears things up sufficiently enough to get you started (again).

colinscruggs commented 5 years ago

Hey @cruelmelody, I'm also a beginner in Bulma and also stumbled with the same issue earlier today. Have you tried running npm install at the root directory? It solved my issue.

Thanks for the tip! I was in the wrong folder and my .css and .js kept getting compiled and placed into my .Trash directory lol. I appreciate it!