bem-archive / generator-bem-stub

[DEPRECATED] A generator of BEM projects
http://bem.info/tools/bem/bem-stub/
MIT License
41 stars 9 forks source link

yo generation problem (Linux) #39

Closed pahaz closed 10 years ago

pahaz commented 10 years ago
|[pahaz@li5xx]:~/bem_test on master^
|==>$ yo
[?] 'Allo pahaz! What would you like to do? Run the Bem-stub generator (0.0.2)

Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo bem-stub
[?] How to name the project? test1
[?] Who will mantain this project? pahaz
[?] What email to use? pahaz@urfuclub.ru
[?] What collector to use? enb
[?] What base library to use? bem-core
[?] Would you like any additional libraries? bem-components
[?] What platforms to use? desktop, touch-pad, touch-phone
[?] Use design from bem-components? Yes
[?] What technologies to use? bemjson.js
[?] What template system to use? bh
[?] Build static html? Yes
[?] What files to minimize?
   create test1/.bowerrc
   create test1/.editorconfig
   create test1/.enb/make.js
   create test1/.npmignore
   create test1/Makefile
   create test1/README.md
   create test1/bower.json
   create test1/desktop.bundles/index/index.bemjson.js
   create test1/touch-pad.bundles/index/index.bemjson.js
   create test1/touch-phone.bundles/index/index.bemjson.js
   create test1/package.json

     info  ==> npm install...

npm WARN package.json test1@0.0.0 No description
npm WARN package.json test1@0.0.0 No repository field.
npm WARN package.json test1@0.0.0 No README data
enb-roole@0.2.1 node_modules/enb-roole
+-- vow@0.4.3
L-- vow-node@0.2.0

roole@0.9.0 node_modules/roole
+-- pinpoint@1.1.0
+-- promise-now@1.1.0
+-- commander@2.3.0
+-- chokidar@0.6.3
+-- fs-extra@0.8.1 (jsonfile@1.1.1, rimraf@2.2.8, ncp@0.4.2, mkdirp@0.3.5)
+-- roole-compiler@0.6.0 (tree-transformer@1.0.0)
+-- roole-parser@0.13.1
+-- roole-prefixer@0.3.1 (intersect@0.0.3, roole-node@0.5.4, tree-transformer@1.0.0)
L-- roole-evaluator@0.25.0 (promise-any-first@1.0.0, intersperse@1.0.0, roole-error@0.1.1, natural-range@1.0.0, tree-transformer@1.0.0, floader@1.0.1, roole-node@0.5.4, tree-visitor@1.0.0, path-br@1.0.0, tree-transformer-async@1.0.0, roole-builtin@0.5.1)

enb-autoprefixer@0.1.1 node_modules/enb-autoprefixer
L-- autoprefixer@1.0.20140213 (fs-extra@0.8.1, postcss@0.2.0)

bh@1.2.3 node_modules/bh
+-- inherit@2.1.0
+-- vow@0.3.13
L-- vow-fs@0.2.3 (vow-queue@0.0.2, node-uuid@1.4.0)

enb-bh@0.1.1 node_modules/enb-bh
L-- vow@0.4.3

bower@1.3.3 node_modules/bower
+-- is-root@0.1.0
+-- junk@0.3.0
+-- stringify-object@0.2.1
+-- abbrev@1.0.5
+-- chmodr@0.1.0
+-- which@1.0.5
+-- osenv@0.0.3
+-- opn@0.1.2
+-- archy@0.0.2
+-- graceful-fs@2.0.3
+-- lockfile@0.4.2
+-- rimraf@2.2.8
+-- lru-cache@2.5.0
+-- bower-logger@0.2.2
+-- bower-endpoint-parser@0.2.2
+-- nopt@2.2.1
+-- retry@0.6.1
+-- chalk@0.4.0 (has-color@0.1.7, ansi-styles@1.0.0, strip-ansi@0.1.1)
+-- mkdirp@0.3.5
+-- tmp@0.0.24
+-- q@1.0.1
+-- request-progress@0.3.1 (throttleit@0.0.2)
+-- shell-quote@1.4.2 (array-filter@0.0.1, array-reduce@0.0.0, array-map@0.0.0, jsonify@0.0.0)
+-- bower-json@0.4.0 (intersect@0.0.3, deep-extend@0.2.10)
+-- semver@2.2.1
+-- promptly@0.2.0 (read@1.0.5)
+-- p-throttler@0.0.1 (q@0.9.7)
+-- fstream-ignore@0.0.10 (inherits@2.0.1, minimatch@0.3.0)
+-- fstream@0.1.29 (inherits@2.0.1, graceful-fs@3.0.2)
+-- tar@0.1.20 (inherits@2.0.1, block-stream@0.0.7)
+-- bower-config@0.5.2 (optimist@0.6.1)
+-- glob@3.2.11 (inherits@2.0.1, minimatch@0.3.0)
+-- decompress-zip@0.0.8 (mkpath@0.1.0, graceful-fs@3.0.2, touch@0.0.2, readable-stream@1.1.13-1, binary@0.3.0)
+-- request@2.34.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, mime@1.2.11, form-data@0.1.4, tough-cookie@0.12.1, http-signature@0.10.0, hawk@1.0.0)
+-- update-notifier@0.1.10 (semver@2.3.2, configstore@0.3.1, request@2.38.0)
+-- inquirer@0.4.1 (readline2@0.1.0, through@2.3.4, mute-stream@0.0.4, async@0.2.10, lodash@2.4.1, cli-color@0.2.3)
+-- handlebars@1.3.0 (optimist@0.3.7, uglify-js@2.3.6)
+-- bower-registry-client@0.2.1 (request-replay@0.2.0, lru-cache@2.3.1, async@0.2.10, request@2.27.0)
+-- mout@0.9.1
+-- insight@0.3.1 (object-assign@0.1.2, async@0.2.10, lodash.debounce@2.4.1, request@2.27.0, configstore@0.2.3)
L-- cardinal@0.4.4 (ansicolors@0.2.1, redeyed@0.4.4)

enb@0.10.0 node_modules/enb
+-- madify@0.0.1
+-- graceful-fs@1.2.1
+-- inherit@2.1.0
+-- mad@0.4.0
+-- vow@0.3.13
+-- puml-link@0.0.1
+-- mime@1.2.9
+-- commander@1.1.1 (keypress@0.1.0)
+-- sibling@0.1.3 (vow@0.4.5)
+-- vow-fs@0.2.3 (vow-queue@0.0.2, node-uuid@1.4.0)
+-- dom-js@0.0.9 (sax@0.6.0)
+-- uglify-js@1.3.5
+-- stylus@0.40.3 (mkdirp@0.3.5, cssom@0.2.5, debug@1.0.4, sax@0.5.8)
+-- express@3.1.0 (methods@0.0.1, fresh@0.1.0, cookie-signature@0.0.1, range-parser@0.0.4, buffer-crc32@0.1.1, cookie@0.0.5, commander@0.6.1, mkdirp@0.3.3, debug@1.0.4, send@0.1.0, connect@2.7.2)
+-- js-yaml@2.1.0 (argparse@0.1.15, esprima@1.0.4)
+-- csso@1.3.7
L-- borschik@0.4.2 (vow@0.3.12, coa@0.4.0, uglify-js@2.4.6, csso@1.3.10)

     info  ==> bower install...

bower bem-components#f72047c18062630ca2280674233e986e7b9f2ee8       not-cached git://github.com/bem/bem-components.git#f72047c18062630ca2280674233e986e7b9f2ee8
bower bem-components#f72047c18062630ca2280674233e986e7b9f2ee8          resolve git://github.com/bem/bem-components.git#f72047c18062630ca2280674233e986e7b9f2ee8
bower bem-core#v2.2.2                                               not-cached git://github.com/bem/bem-core.git#v2.2.2
bower bem-core#v2.2.2                                                  resolve git://github.com/bem/bem-core.git#v2.2.2
bower bem-components#f72047c18062630ca2280674233e986e7b9f2ee8         checkout f72047c18062630ca2280674233e986e7b9f2ee8
bower bem-core#v2.2.2                                                    error Arguments to path.join must be strings

Stack trace:
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at GitHubResolver._checkout (/home/pahaz/bem_test/test1/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21)
    at /home/pahaz/bem_test/test1/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21
    at _fulfilled (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:760:13)
    at /home/pahaz/bem_test/test1/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:574:44
    at flush (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:108:17)

Console trace:
Trace
    at StandardRenderer.error (/home/pahaz/bem_test/test1/node_modules/bower/lib/renderers/StandardRenderer.js:72:17)
    at Logger.<anonymous> (/home/pahaz/bem_test/test1/node_modules/bower/bin/bower:111:22)
    at Logger.emit (events.js:95:17)
    at Logger.emit (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /home/pahaz/bem_test/test1/node_modules/bower/lib/commands/install.js:35:16
    at _rejected (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/q/q.js:797:24)
    at /home/pahaz/bem_test/test1/node_modules/bower/node_modules/q/q.js:823:30
    at Promise.when (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/q/q.js:1035:31)
    at Promise.promise.promiseDispatch (/home/pahaz/bem_test/test1/node_modules/bower/node_modules/q/q.js:741:41)
    at /home/pahaz/bem_test/test1/node_modules/bower/node_modules/q/q.js:557:44

System info:
Bower version: 1.3.3
Node version: 0.10.29
OS: Linux 3.12.9-x86-linode56 ia32

? Done!

     _-----_
    |       |    .---------------------------------------.
    |--(o)--|    |        Bye from us! Chat soon.        |
   `---------?   |                                       |
    ( _?U`_ )    |            The Yeoman Team            |
    /___A___\    | https://github.com/yeoman/yeoman#team |
     |  ~  |     '---------------------------------------'
   __'.___.'__
 ?   `  |° ? Y `

|[pahaz@li5xx]:~/bem_test on master^
|==>$ cd
node_modules/ project-stub/ proj-stub2/   proj-stub3/   proj-stub4/   test1/
|[pahaz@li5xx]:~/bem_test on master^
|==>$ cd
node_modules/ project-stub/ proj-stub2/   proj-stub3/   proj-stub4/   test1/
|[pahaz@li5xx]:~/bem_test on master^
|==>$ cd test1/
|[pahaz@li5xx]:~/bem_test/test1 on master^
|==>$ enb
No command 'enb' found, did you mean:
 Command 'env' from package 'coreutils' (main)
 Command 'ebb' from package 'texlive-binaries' (main)
 Command 'wnb' from package 'wordnet-gui' (universe)
 Command 'erb' from package 'ruby1.8' (main)
 Command 'erb' from package 'ruby1.9.1' (main)
 Command 'tnb' from package 'pvm-examples' (universe)
 Command 'nb' from package 'nanoblogger' (universe)
 Command 'ent' from package 'ent' (universe)
 Command 'hnb' from package 'hnb' (universe)
enb: command not found
|[pahaz@li5xx]:~/bem_test/test1 on master^
|==>$ node
node    nodejs
|[pahaz@li5xx]:~/bem_test/test1 on master^
|==>$ ./node_modules/.bin/enb build

  Usage: enb [options] [command]

  Commands:

    make [options]         build specified targets
    server [options]       run development server
    help                   displays help about techs
    *

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

|[pahaz@li5xx]:~/bem_test/test1 on master^
|==>$ ./node_modules/.bin/enb make
08:24:09.253 - build started
08:24:09.993 - [rebuild] [desktop.bundles/index/index.bemjson.js] file-provider
08:24:09.994 - [rebuild] [touch-pad.bundles/index/index.bemjson.js] file-provider
08:24:09.999 - [rebuild] [touch-phone.bundles/index/index.bemjson.js] file-provider
08:24:10.004 - [failed] [desktop.bundles/index/index.levels] levels
08:24:10.007 - [failed] [touch-pad.bundles/index/index.levels] levels
08:24:10.007 - [failed] [touch-phone.bundles/index/index.levels] levels
08:24:10.008 - [failed] [desktop.bundles/index/index.files] files
08:24:10.008 - [failed] [desktop.bundles/index/index.deps.js] deps
08:24:10.008 - [failed] [touch-pad.bundles/index/index.files] files
08:24:10.008 - [failed] [touch-pad.bundles/index/index.deps.js] deps
08:24:10.009 - [failed] [touch-phone.bundles/index/index.files] files
08:24:10.009 - [failed] [touch-phone.bundles/index/index.deps.js] deps
08:24:10.009 - [failed] [desktop.bundles/index/index.bh.js] bh-server
08:24:10.009 - [failed] [desktop.bundles/index/index.noprefix.css] css-roole
08:24:10.009 - [failed] [touch-pad.bundles/index/index.bh.js] bh-server
08:24:10.009 - [failed] [touch-pad.bundles/index/index.noprefix.css] css-roole
08:24:10.009 - [failed] [touch-phone.bundles/index/index.bh.js] bh-server
08:24:10.009 - [failed] [touch-phone.bundles/index/index.noprefix.css] css-roole
08:24:10.010 - build failed
Error: ENOENT, no such file or directory '/home/pahaz/bem_test/test1/libs/bem-core/common.blocks'
    at Object.fs.readdirSync (fs.js:659:18)
    at module.exports.inherit.load (/home/pahaz/bem_test/test1/node_modules/enb/lib/levels/level.js:221:28)
    at /home/pahaz/bem_test/test1/node_modules/enb/techs/levels.js:102:38
    at Array.map (native)
    at /home/pahaz/bem_test/test1/node_modules/enb/techs/levels.js:101:42
    at Array.3 (/home/pahaz/bem_test/test1/node_modules/enb/node_modules/vow/lib/vow.js:202:56)
    at Object.callFns [as _onImmediate] (/home/pahaz/bem_test/test1/node_modules/enb/node_modules/vow/lib/vow.js:462:35)
    at processImmediate [as _immediateCallback] (timers.js:336:15)

г[pahaz@li5xx]:~/bem_test/test1 on master^
L==>$ bower -v
1.3.8
г[pahaz@li5xx]:~/bem_test/test1 on master^
L==>$ node -v
v0.10.29
г[pahaz@li5xx]:~/bem_test/test1 on master^
L==>$ npm -v
1.4.14
╔[pahaz@li5xx]:~/bem_test/test1 on master▲
╚══>$ uname -a
Linux li573-138 3.12.9-x86-linode56 #1 SMP Mon Feb 3 09:46:59 EST 2014 i686 i686 i386 GNU/Linux
pahaz commented 10 years ago

Sorry, problem solved.

bower install

fix that.