Closed robogeek closed 6 years ago
How-to questions are to be posted on Stack overflow. As this problem doesn't happen on vanilla bootstrap, it is invalid
Um... what do you mean "vanilla bootstrap". If you mean that build only works with the download then tell me that. This "vanilla bootstrap" phrase seems to add confusion -- because the npm package is pretty darn vanilla.
The build tools only work properly from a git clone or tarball.
This is seriously closed? When I install b4 via npm I can't run a build and this is considered as acceptable? Then why did it worked with all earlier versions, beside all future wtf experiences for everybody.
As the original poster ... I did consider making the complaint you just said. However it is straightforward to build from a clone of the git repository.
I'm working on the 4th edition of Node.js Web Development. In the 3rd edition I showed how to build the Bower repository - I think it hadn't been added to npm at that time. For the 4th edition I started to replicate the instructions from the 3rd edition, and ran into problems as I noted above.
So, yeah, someone who'd done a build of bootstrap3 from npm WOULD be disappointed (or maybe even WTF'd) by being unable to build bootstrap4.
@srad I missed this issue, but there are additional ones where this is explained (as well as in our release blog posts and migration docs). Typically, npm packages don't include a separate build system as package management is meant to integrate packages into your own asset pipeline or build system. Including it for everyone made it half broken (we weren't including all the required files for it) and made the call to rip it all out rather than try to support a fragile and uncommon workflow
Hope that helps some.
The issue at hand is running a build of Bootstrap after installing it as an npm package. Most of the verification queries (below) are not applicable. There appears to be a bug in the build process.
OS: macOS 10.11.6 ... Node.js 8.9.1
I have an Express app, and have installed Bootstrap as a
package.json
dependency. I want to produce a modified Bootstrap build and at the moment have made zero modifications.This gets the dependencies installed in the Bootstrap package. This took a long time to run.
This attempts to build Bootstrap. The build proceeds fine until this step:
It appears from the error message that
node-sass
wants a-o directory
option. HOWEVER, the command line is not trying to compile a directory, instead it lists an input file and an output file.In other words, I suspect an error in using the
node-sass
command in thepackage.json
scripts ...?Your Verification questions
Before opening an issue:
When asking general "how to" questions:
When reporting a bug, include:
When suggesting a feature, include: