2012-12-24 60 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正式出来