2012-12-24 57 views
1

我是Node.js的新手。我在Linux Mint上運行了節點0.9.5-pre。我用NPM(1.1.70)安裝打字稿,但現在我得到以下錯誤,當我運行TSC:「require.paths被刪除」錯誤在Linux上運行TypeScript編譯器Mint

Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead. 
    at Function.Object.defineProperty.get (module.js:386:11) 
    at Object.<anonymous> (/home/rolyp/bin/[email protected]:4:21) 
    at Module._compile (module.js:454:26) 
    at Object.Module._extensions..js (module.js:472:10) 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) 
    at Module.runMain (module.js:497:10) 
    at process._tickCallback (node.js:334:13) 

據我瞭解,require.paths未在最新版本的節點的支持。似乎有幾個相關的現有問題,但我不明白這個問題足以使用這些答案。

我試着刪除〜/ .node_modules,但沒有幫助。

有人可以解釋這個問題,並指出我的解決方案?

感謝

+0

我最好安裝穩定版本是固定(這現在是0.8.x) - http://nodejs.org/download/。 – elmigranto

+0

@elmigranto嗯,修復它。謝謝! – Roly

回答

0

我有節點0.9.5預

是在測試版中的錯誤,當0.9正式出來