我正在尝试像在 index.html 文档中设置的那样设置 require ,这样就不会有任何问题......出于某种原因,vowsjs 抱怨 require.config ......
也许它使用的是旧的 requirejs 版本?誓言 0.7.0
(ProjectEnv)obitusis@8675309 ~../static/js: sudo vows test_models.js
../static/js/test_models.js:1
(function (exports, require, module, __filename, __dirname) { require.config({
^
TypeError: Object function require(path) {
return self.require(path);
} has no method 'config'
at Object.<anonymous> (../static/j
s/test_models.js:1:71)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at ProjectEnv/lib/node_modules/vows/bin/vow
s:567:19
at Array.reduce (native)
at importSuites (ProjectEnv/lib/node_module
s/vows/bin/vows:560:18)