2014-03-01 72 views
2

我得到了約曼的generator-angular-fullstack就跑yo angular-fullstack(不Heroku的),但後來我得到了這些失敗和錯誤:約曼的角fullstack有jpegtran斌誤差和3個失敗

3 failing 

    1) jpegtran should successfully proxy jpegtran: 
    Error: timeout of 2000ms exceeded 
     at null.<anonymous> (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runnable.js:165:14) 
     at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) 

    2) jpegtran should minify a .jpg: 
    Error: timeout of 2000ms exceeded 
     at null.<anonymous> (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runnable.js:165:14) 
     at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) 

    3) jpegtran "after all" hook: 
    Error: ENOENT, no such file or directory 'test/minified.jpg' 
     at Object.fs.unlinkSync (fs.js:760:18) 
     at Context.<anonymous> (/home/ubuntu/fs_a/node_modules/jpegtran-bin/test/test-path.js:10:6) 
     at Hook.Runnable.run (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runnable.js:211:32) 
     at next (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runner.js:246:10) 
     at Object._onImmediate (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runner.js:258:5) 
     at processImmediate [as _immediateCallback] (timers.js:330:15) 



/home/ubuntu/fs_a/node_modules/jpegtran-bin/build.js:70 
         throw err; 
          ^
Error: Command failed: configure: error: no nasm (Netwide Assembler) found 

    at ChildProcess.exithandler (child_process.js:637:15) 
    at ChildProcess.EventEmitter.emit (events.js:98:17) 
    at maybeClose (child_process.js:743:16) 
    at Process.ChildProcess._handle.onexit (child_process.js:810:5) 

然後:

npm ERR! [email protected] postinstall: `node pre-build.js` 
npm ERR! Exit status 8 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script. 
npm ERR! This is most likely a problem with the jpegtran-bin package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node pre-build.js 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls jpegtran-bin 
npm ERR! There is likely additional logging output above. 
npm ERR! System Linux 3.2.0-54-virtual 
npm ERR! command "/home/ubuntu/local/bin/node" "/home/ubuntu/local/bin/npm" "install" 
npm ERR! cwd /home/ubuntu/fs_a 
npm ERR! node -v v0.10.26 
npm ERR! npm -v 1.4.3 
npm ERR! code ELIFECYCLE 

我確實找到了jpegtran-bin的github,發現一個similar issue,其結尾是「我們將包含關於如何手動編譯的說明。」

我應該怎麼做?

回答

1

我有這個相同的問題,我更新了yeoman和我的發電機,它解決了我的問題。

嘗試運行npm update -g yo然後運行yo並選擇更新生成器的選項。

注:如果您使用的節點的較舊版本(1.2.10 <),你需要單獨更新閨房,然後咕嚕-CLI並確保其要更新的全球版本,而不是本地版本。

0

我與angular-fullstack的開發者進行了一次討論,他建議我執行以下操作,因爲我有問題使用貓鼬和jpegtran,以及我沒有MongoDB服務器。 Angular-fullstack只連接到Mongodb,它不會爲你安裝它。

  1. 中的package.json以下yo angular-fullstack --skip-install
  2. 變化:

    ... 
    "mongoose": "latest" 
    ... 
    "jpegtran-bin": "latest" 
    
  3. bower install

  4. npm install
  5. 得到莫名其妙的MongoDB(無論是install it on my Ubuntu machine或把它從MongoLab或MongoHQ託管)

但你可以更新一樣jonnieM suggested因爲在end of the discussion with angular-fullstack's developer,他固定角fullstack貓鼬和jpegtran問題發電機..