将节点针迹项目从Linux移到Windows - 现在它不会生成
问题描述:
我收到了一个没有多大意义的错误。这是做咖啡编译my Cakefile部分:将节点针迹项目从Linux移到Windows - 现在它不会生成
buildsrc: ->
stitch = require 'stitch'
fs = require 'fs'
# Create stitch package
pkg = stitch.createPackage
paths: [__dirname + '/src']
dependencies: [
__dirname + '/vendor/jquery-1.7.1.min.js'
__dirname + '/vendor/jquery-ui-1.8.18.min.js'
__dirname + '/vendor/jquery.cookie.js'
__dirname + '/vendor/jquery.iframe-transport.js'
__dirname + '/vendor/jquery.fileupload.js'
]
# Compile the package
pkg.compile (err, src)->
if err
console.warn 'Coffee compile failed:'
console.warn err.toString()
else
# Save the source code
fs.writeFile BUILD_JS_PATH, src, (err)->
if err then throw err
console.log 'Compiled src to ' + BUILD_JS_PATH
而且从运行(缩短路径)输出:
Coffee compile failed: Error: C:\Users\Codemonkey\...\project\src\foo.coffee isn't in the require path
这与相同的代码和相同的节点表现的很出色的Linux - ,针脚和咖啡脚本版本。我可以看到这个错误出现在stitch.coffee:177中,但我无法弄清楚它是什么意思,如果是我的错,或者如何解决它。
感谢您的帮助!