そこで、git を使用して Twitter Bootstrap のクローンを作成しました。次に、 https ://github.com/twbs/bootstrap の指示に従っていたため、node.js と npm を取得しました。 次に、コマンドを実行しましたnpm install recess connect uglify-js jshint -g
。次に、同じ方法でphantomjsもインストールしました(最初はフラグなしで、-g
次にフラグありで)。make
これで、実行できるはずですmake test
。 make
私にとってはうまくいきましたがmake test
、次のエラーがスローされています:
jshint js/*.js --config js/.jshintrc
jshint js/tests/unit/*.js --config js/.jshintrc
node js/tests/server.js &
phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"
module.js:340
throw err;
^
Error: Cannot find module 'connect'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/Jon/dev/blossom/bootstrap/js/tests/server.js:6:15)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
Unable to access network
kill -9 `cat js/tests/pid.txt`
cat: js/tests/pid.txt: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
make: *** [test] Error 1