I
I
Ivan Leshchenko2014-09-17 00:02:44
Node.js
Ivan Leshchenko, 2014-09-17 00:02:44

Why is the bem server not working?

I'm trying to install a bem server on my computer (Macbook Air, OS X 10.9.4)
I'm doing everything according to the instructions en.bem.info/tutorials/project-stub
After the command 'bem server' I go to the page localhost:8080/desktop.bundles
And I see next message

HTTP error 500

Error: Tech module with path '/Users/my_username/lab/project-stub/libs/bem-core/.bem/techs/bemhtml.js' not found on require search paths
    at exports.Level.INHERIT.resolveTechPath (/Users/my_username/lab/project-stub/node_modules/bem/lib/level.js:280:19)
    at exports.Level.INHERIT.resolveTech (/Users/my_username/lab/project-stub/node_modules/bem/lib/level.js:228:25)
    at exports.Level.INHERIT.resolveTechName (/Users/my_username/lab/project-stub/node_modules/bem/lib/level.js:244:47)
    at exports.Level.INHERIT.resolveTech (/Users/my_username/lab/project-stub/node_modules/bem/lib/level.js:231:25)
    at exports.Level.INHERIT.createTech (/Users/my_username/lab/project-stub/node_modules/bem/lib/level.js:206:32)
    at exports.Level.INHERIT.getTech (/Users/my_username/lab/project-stub/node_modules/bem/lib/level.js:193:43)
    at null. (/Users/my_username/lab/project-stub/node_modules/bem/lib/nodes/bundle.js:64:28)
    at Array.forEach (native)
    at null. (/Users/my_username/lab/project-stub/node_modules/bem/lib/nodes/bundle.js:62:29)
    at Promise.apply (/Users/my_username/lab/project-stub/node_modules/bem/node_modules/q/q.js:1122:26)

How to fix it and make it work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Tartmin, 2014-09-17
@baskerville42

Have you installed all dependencies? Run npm install in the application folder

A
Alexey Yaroshevich, 2015-07-07
@qfox

If the problem is with bem-core, bem-components (in this case, the first one) forgot bower install, which should be installed with npm install. Also, bem server is a bit outdated and better to use enb server.
In general, it is much faster to find an answer to such questions on bem.info and the forum.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question