ucsb / ucsb-bootstrap

UCSB Bootstrap theme
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

npm install and run not working as advertised #11

Open ilessing opened 5 years ago

ilessing commented 5 years ago

Here is a transcript of my attempt to run npm install and then npm run locally on a clone of this repo.

This is probably due to my very meager knowledge of using npm I have NPM version 6.5.0 running on my mac under latest MacOS Version 10.14.3 Mojave. and node version 11.9.0

ucsb-bootstrap/ ilessing$ npm install
npm ERR! code E404
npm ERR! 404 Not Found: har-validator@5.1.2

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ilessing/.npm/_logs/2019-02-16T00_41_42_532Z-debug.log
ucsb-bootstrap/ ilessing$ npm run scss

> ucsb-bootstrap@0.1.0 scss /Users/ilessing/Projects/ucsb-bootstrap
> node-sass --output-style compressed --watch scss/ucsb.scss docs/css/ucsb.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! ucsb-bootstrap@0.1.0 scss: `node-sass --output-style compressed --watch scss/ucsb.scss docs/css/ucsb.css`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the ucsb-bootstrap@0.1.0 scss 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/ilessing/.npm/_logs/2019-02-16T00_42_08_640Z-debug.log

The log files mentioned: ~/.npm/_logs/2019-02-16T00_41_42_532Z-debug.log is 2214 lines ~/.npm/_logs/2019-02-16T00_42_08_640Z-debug.log only 37 lines

loganfranken commented 5 years ago

Weird! Did a node-sass directory get added within your node_modules directory after doing the npm install?

garster commented 5 years ago

There is no 5.1.2. It must have been pulled down https://www.npmjs.com/package/har-validator

loganfranken commented 5 years ago

Oh, good catch @garster: I didn't see that the npm install failed at the very top.

@ilessing If you delete the node_modules directory and re-run the npm install and npm run, does it work for you?

ilessing commented 5 years ago

I deleted my node_modules/ dir and tried npm install again with same results as before.

then I did a manual npm install har-validator

and then re-tried my npm install with much better results. There we only a couple of warnings.

then I issued npm run scss and I think the server is started but I wasn't able to bring it up in the browser at: http://127.0.0.1:3000/ nor http://127.0.0.1:8000/

And thank you for the help!

loganfranken commented 5 years ago

Hey @ilessing!

There's actually no local server set up for this: it's just a process that runs to compile the SCSS files. You can just pop open the index.html file in a browser to check it out locally.