我无法运行我的sails.js应用。当我尝试sails lift
时,它会抛出以下错误。还有什么需要做的吗?
C:\my_project_path\config\._blueprints.js:1
(function (exports, require, module, __filename, __dirname) {
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
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 C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\include-all\index.js:129:29
at Array.forEach (native)
at requireAll (C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\include-all\index.js:44:9)
at buildDictionary (C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node
_modules\sails\node_modules\sails-build-dictionary\index.js:68:14)
at Function.module.exports.aggregate (C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\sails\node_modules\sails-build-dictionary\index.js:190:9)
at Array.loadOtherConfigFiles [as 0] (C:\Users\Raghav Mac\Desktop\FiZZ\web-s
ervice-master\node_modules\sails\lib\hooks\moduleloader\index.js:164:27)
at C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\sails\node_modules\async\lib\async.js:484:38
at _each (C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\sails\node_modules\async\lib\async.js:46:13)
at Object.async.auto (C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\sails\node_modules\async\lib\async.js:455:9)
at Hook.loadUserConfig (C:\Users\Raghav Mac\Desktop\FiZZ\web-service-master\node_modules\sails\lib\hooks\moduleloader\index.js:160:13)
需要帮助,提前谢谢。
答案 0 :(得分:1)
感谢Adam William Larson的回答。
升级到可能解决问题的节点v0.11 ..我非常确定最新版本的sails仅适用于v0.11或更高版本。