A
A
Artem Pavlyutkin2017-07-31 02:04:05
Node.js
Artem Pavlyutkin, 2017-07-31 02:04:05

How to solve the problem in the console when starting a BEM project?

NODE: v6.11.1
NPM: v3.10.10
Starting the development server with the command
./node_modules/.bin/enb server
Then it gives an error:

ENB server started at http://0.0.0.0:8181
01:54:25.747 - build started
01:54:25.762 - [rebuild] [desktop.bundles\index\index.bemjson.js] file-provider
01:54:25.923 - [rebuild] [desktop.bundles\index\index.levels] levels
01:54:25.924 - [rebuild] [desktop.bundles\index\index.bemdecl.js] bemjson-to-bemdecl
01:54:26.007 - [rebuild] [desktop.bundles\index\index.deps.js] deps
01:54:26.021 - [rebuild] [desktop.bundles\index\index.files] files
01:54:26.021 - [rebuild] [desktop.bundles\index\index.dirs] files
01:54:26.466 - [rebuild] [desktop.bundles\index\index.bemhtml.js] bemhtml
01:54:26.520 - [rebuild] [desktop.bundles\index\index.html] bemjson-to-html
01:54:26.520 - build finished - 1815ms
----- \desktop.bundles\index\index.html 1829ms
01:54:26.564 - build started
01:54:26.566 - build started
01:54:26.573 - [rebuild] [desktop.bundles\index\index.bemjson.js] file-provider
01:54:26.577 - [rebuild] [desktop.bundles\index\index.bemjson.js] file-provider
01:54:26.731 - [rebuild] [desktop.bundles\index\index.levels] levels
01:54:26.882 - [rebuild] [desktop.bundles\index\index.bemdecl.js] bemjson-to-bemdecl
01:54:26.883 - [rebuild] [desktop.bundles\index\index.levels] levels
01:54:26.886 - [rebuild] [desktop.bundles\index\index.bemdecl.js] bemjson-to-bemdecl
01:54:26.967 - [rebuild] [desktop.bundles\index\index.deps.js] deps
01:54:26.973 - [rebuild] [desktop.bundles\index\index.files] files
01:54:26.973 - [rebuild] [desktop.bundles\index\index.dirs] files
01:54:26.984 - [rebuild] [desktop.bundles\index\index.deps.js] deps
01:54:26.991 - [rebuild] [desktop.bundles\index\index.files] files
01:54:26.991 - [rebuild] [desktop.bundles\index\index.dirs] files
01:54:27.057 - [rebuild] [desktop.bundles\index\index.bemhtml.bemdecl.js] deps-by-tech-to-bemdecl
01:54:27.061 - [rebuild] [desktop.bundles\index\index.browser.js] browser-js
01:54:27.062 - [rebuild] [desktop.bundles\index\index.bemhtml.deps.js] deps
01:54:27.062 - [rebuild] [desktop.bundles\index\index.bemhtml.files] files
01:54:27.062 - [rebuild] [desktop.bundles\index\index.bemhtml.dirs] files
01:54:27.067 - [rebuild] [desktop.bundles\index\index.browser.bemhtml.js] bemhtml
01:54:27.072 - [rebuild] [desktop.bundles\index\index.js] file-merge
01:54:27.459 - [rebuild] [desktop.bundles\index\index.min.js] borschik
01:54:27.460 - build finished - 902ms
01:54:27.466 - [rebuild] [desktop.bundles\index\index.css] enb-postcss
----- \desktop.bundles\index\index.min.js 914ms
01:54:27.766 - [failed] [desktop.bundles\index\index.min.css] borschik
01:54:27.766 - build failed
Error: ENOENT: no such file or directory, open 'C:\Users\Artem%20Pavlyutkin\Desktop\project\desktop.bundles\index\index.css'
    at Error (native)
    at Object.fs.openSync (fs.js:641:18)
    at Object.fs.readFileSync (fs.js:509:33)
    at read (C:\Users\Artem Pavlyutkin\Desktop\project\node_modules\borschik\lib\tech.js:116:42)
    at createFile (C:\Users\Artem Pavlyutkin\Desktop\project\node_modules\borschik\lib\tech.js:27:37)
    at process (C:\Users\Artem Pavlyutkin\Desktop\project\node_modules\borschik\lib\tech.js:35:24)
    at Cmd.<anonymous> (C:\Users\Artem Pavlyutkin\Desktop\project\node_modules\borschik\lib\coa.js:139:38)
    at Q.when.prev (C:\Users\Artem Pavlyutkin\Desktop\project\node_modules\borschik\node_modules\coa\lib\cmd.js:416:45)
    at _fulfilled (C:\Users\Artem Pavlyutkin\Desktop\project\node_modules\q\q.js:854:54)
    at self.promiseDispatch.done (C:\Users\Artem Pavlyutkin\Desktop\Мафия верстка с БЭМ\mafia\node_modules\q\q.js:883:30)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2017-07-31
@ilyarsoftware

For questions, place here bem/project-stub/issues .
The problem is probably related to the location of the project, more precisely with the spaces in the path name.
I think if you move it, for example, to C:\projects\project, the problem will go away.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question