2015-12-15 46 views
0

我無法運行我的sails.js應用程序。當我嘗試sails lift時,它會引發以下錯誤。還有什麼需要做的嗎?無法解除sails.js應用程序

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

這是一款從未運行過的全新應用嗎?你使用的是什麼版本的Node? –

+0

是的,它是第一次嘗試運行它。節點 - v0.10.31 –

+2

升級到節點v0.11 ..可能會解決這個問題,我很確定最新版本的sails只能在v0.11或更高版本上運行。 –

回答

1

感謝Adam William Larson的回答。

升級到節點v0.11 ..可能會解決這個問題,我非常確定最新版本的sails只能在v0.11或更高版本上運行。

相關問題