0
我收到了一個沒有多大意義的錯誤。這是做咖啡編譯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中,但我無法弄清楚它是什麼意思,如果是我的錯,或者如何解決它。
感謝您的幫助!