Node.js &引用;require.path已删除“;在Linux Mint上运行TypeScript编译器时出错
我是Node.js的新手。我在LinuxMint上运行了节点0.9.5-pre。我使用npm(1.1.70)安装TypeScript,但现在运行tsc时出现以下错误:Node.js &引用;require.path已删除“;在Linux Mint上运行TypeScript编译器时出错,node.js,installation,npm,typescript,Node.js,Installation,Npm,Typescript,我是Node.js的新手。我在LinuxMint上运行了节点0.9.5-pre。我使用npm(1.1.70)安装TypeScript,但现在运行tsc时出现以下错误: 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)
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/tsc@0.8.0: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.path。使用node_modules文件夹或node_PATH环境变量。
位于Function.Object.defineProperty.get(module.js:386:11)
反对。(/home/rolyp/bin)/tsc@0.8.0:4:21)
在模块处编译(Module.js:454:26)
在Object.Module.\u extensions..js(Module.js:472:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
位于Module.runMain(Module.js:497:10)
在进程中调用(node.js:334:13)
据我所知,最新版本的节点不支持require.path。似乎存在几个相关的问题,但我对这个问题的理解还不够透彻,无法利用这些答案
我尝试删除~/.node_模块,但没有帮助
有人能解释一下这个问题并给我指出一个解决办法吗
谢谢
我有节点0.9.5-pre
是0.9官方版发布时修复的beta版中的一个bug我最好安装稳定版(目前为0.8.x)-@elmigranto-Hmm,修复了它。谢谢