Closed antirek closed 7 years ago
Can you post the output of wintersmith build -vv
sergey@sergey-300E5C:~/Projects/mobilon_docs$ wintersmith build -vv
building site
verbose creating environment - work directory: /home/sergey/Projects/mobilon_docs
using config file: /home/sergey/Projects/mobilon_docs/config.json
verbose config: {"locals":{"url":"http://antirek.github.io/mobilon_docs/build","name":"Mobilon Docs","owner":"Someone","description":"Документация для пользователей, а также их родителей"},"require":{"moment":"moment","_":"underscore","typogr":"typogr"},"jade":{"pretty":true},"markdown":{"smartLists":true,"smartypants":true},"baseUrl":"/","contents":"./contents","ignore":[],"plugins":[],"templates":"./templates","views":null,"output":"./build","hostname":null,"port":8080,"_fileLimit":40,"_restartOnConfChange":true,"__filename":"/home/sergey/Projects/mobilon_docs/config.json","_cliopts":{"X":false,"verbose":true,"v":true,"quiet":false,"q":false,"version":false,"V":false,"help":false,"h":false,"c":"./config.json","C":null},"X":false,"verbose":true,"v":true,"quiet":false,"q":false,"version":false,"V":false,"help":false,"h":false,"c":"./config.json","C":null}
verbose loading module 'moment' available in locals as 'moment'
silly loading module: moment
/usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:837
if (fn === null) throw new Error("Callback was already called.");
^
Error: Callback was already called.
at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:837:32
at /usr/lib/node_modules/wintersmith/lib/core/utils.js:48:18
at nextTask (/usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:5070:14)
at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:5064:13
at apply (/usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:21:25)
at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:56:12
at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:840:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:416:3)
Sorry, before use I must do 'npm install' for plugins.
Thanks and nothing to apologise for! I actually think this might be a bug so I'm reopening this. The log should show that a module is missing not an obscure error about a callback being called twice when this happens.
I get this error when I use yarn instead of npm
Same issue as @adius. I got this error when I used Yarn. Deleted the node_modules dir, ran npm install
and everything worked fine. With yarn, I ended up with async 2.1.4; with npm, 2.1.5.
Should have better error reporting now. Tried to reproduce with yarn but worked fine for me. Feel free to open up another issue about it if the problem persists
@jnordberg I'm still having this issue! With npm everything works fine ...
@adius create another issue with steps to reproduce and I'll have a look
Sure. Here you go: https://github.com/jnordberg/wintersmith/issues/327
install now and try build existing project - crash.
ubuntu 16.04, nodejs 7.4.0