windows 7 - how do I tell cake where to look for coffee? -
setting express coffee app twilson63 built. seems cake can't find coffee, both ok which
. there else need here? here's steps:
jcollum@developer01 ~/dev/express-coffee-master $ coffee /c/users/jcollum/appdata/roaming/npm/node_modules/coffee-script/bin/coffee
ok coffee there.
jcollum@developer01 ~/dev/express-coffee-master $ cake /c/users/jcollum/appdata/roaming/npm/node_modules/coffee-script/bin/cake
and cake.
jcollum@developer01 ~/dev/express-coffee-master $ cake cakefile defines next tasks: cake docs # generate annotated source code docco cake build cake spec # run mocha tests cake test # run mocha tests cake dev # start dev env cake debug # start debug env cake scaffold # scaffold model/controller/test -n, --name name of model `scaffold`
cake found cakefile locally.
jcollum@developer01 ~/dev/express-coffee-master $ cake dev c:\users\jcollum\dev\express-coffee-master\node_modules\which\which.js:83 throw new error("not found: "+cmd) ^ error: not found: coffee @ function.whichsync [as sync] (c:\users\jcollum\dev\express-coffee-master\node_modules\which\which.js:83:9) @ object.options [as action] (c:\users\jcollum\dev\express-coffee-master\cakefile:121:17) @ helpers.extend.invoke (c:\users\jcollum\appdata\roaming\npm\node_modules\coffee-script\lib\coffee-script\cake.js:44:26) @ object.exports.run (c:\users\jcollum\appdata\roaming\npm\node_modules\coffee-script\lib\coffee-script\cake.js:69:21) @ object.<anonymous> (c:\users\jcollum\appdata\roaming\npm\node_modules\coffee-script\bin\cake:7:38) @ module._compile (module.js:449:26) @ object.module._extensions..js (module.js:467:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.runmain (module.js:492:10)
bzzzzttt! nope. suspect issue windows 7 , node not playing nicely together.
seems reply create sure had node_path in env:
export node_path=/c/users/jcollum/appdata/roaming/npm:/c/users/jcollum/appdata/roaming/npm/node_modules
either that, or adding node_modules
path in .bash_profile.
got thought here: https://github.com/replit/jsrepl/issues/56
windows-7 coffeescript git-bash cakefile
No comments:
Post a Comment