bassjobsen / bootstrap-cli Goto Github PK
View Code? Open in Web Editor NEWCommand-line interface for Bootstrap
Command-line interface for Bootstrap
The _variables.scss file created in "<PROJECT_FOLDER>\scss" doesn't contain all the required variables, which cause an issue when trying to compile it.
Hi Bass,
Try to use the CLI (because I have your latest bootstrap 4 book), but it seems impossible to npm start or bootstrap watch a project. Other applications like Stack from Zurb work perfect.
This is the error log:
0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\David\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]~prestart: [email protected] 6 silly lifecycle [email protected]~prestart: no script for prestart, continuing 7 info lifecycle [email protected]~start: [email protected] 8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 9 verbose lifecycle [email protected]~start: PATH: C:\Users\David\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\David\bootstrap-4-A\node_modules\.bin;C:\Users\David\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\David\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Norman\Npm\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\nodejs;C:\Users\David\AppData\Local\Microsoft\WindowsApps;C:\Users\David\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl 10 verbose lifecycle [email protected]~start: CWD: C:\Users\David\bootstrap-4-A 11 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'grunt' ] 12 silly lifecycle [email protected]~start: Returned: code: 6 signal: null 13 info lifecycle [email protected]~start: Failed to exec start script 14 verbose stack Error: [email protected] start:
grunt14 verbose stack Exit status 6 14 verbose stack at EventEmitter.<anonymous> (C:\Users\David\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at EventEmitter.emit (events.js:191:7) 14 verbose stack at ChildProcess.<anonymous> (C:\Users\David\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at ChildProcess.emit (events.js:191:7) 14 verbose stack at maybeClose (internal/child_process.js:891:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 15 verbose pkgid [email protected] 16 verbose cwd C:\Users\David\bootstrap-4-A 17 verbose Windows_NT 10.0.15063 18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\David\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start" 19 verbose node v6.11.0 20 verbose npm v5.0.4 21 error code ELIFECYCLE 22 error errno 6 23 error [email protected] start:
grunt23 error Exit status 6 24 error Failed at the [email protected] start script. 24 error This is probably not a problem with npm. There is likely additional logging output above. 25 verbose exit [ 6, true ]
Regards & Thanks,
David
Use the bootstrap new --template empty-bootstrap-project-gulp command to enter the project name and then report the error, TypeError:Cannot read property 'url' of undefined
This isn't a Issue per-se but a question if you are thinking of using - giving the chance to use either Sass or LESS in the CLI?
Would be great if you would consider it.
I might even help you out.
EDIT:
/Implementing handlebars would be great./ Didn't check but it's already implemented seems ๐
I'll see what I can do :)
This is what happens consistently when running bootstrap new:
`/usr/lib/node_modules/bootstrap-cli/node_modules/bower/lib/node_modules/q/q.js:155
throw e;
^
SyntaxError: Unexpected token @ in JSON at position 0
at JSON.parse ()
at /usr/lib/node_modules/bootstrap-cli/node_modules/bower/lib/node_modules/bower-json/lib/json.js:42:29
at /usr/lib/node_modules/bootstrap-cli/node_modules/bower/lib/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:528:3)
`
The bower.json file is created but no bower directory. The problem seems to be Bower.
Bower also doesn't install Bootstrap. I have to do:
npm install --no-optional --save-dev [email protected]
after first installing popper and jquery. 'n Regte kopseer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.