[英]Error: require.paths is removed. when running node.js & socket.io
[英]“require.paths is removed” error running TypeScript compiler on Linux Mint
我是Node.js的新手。 我在Linux Mint上運行了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)
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)
我收集到最新版本的Node不支持require.paths。 似乎有幾個相關的現有問題,但是我對這個問題的理解不夠充分,無法利用答案。
我嘗試刪除〜/ .node_modules,但這沒有幫助。
有人可以解釋這個問題,並指出解決方案嗎?
謝謝
我有0.9.5-pre節點
是Beta發行版中的錯誤,當0.9官方發布時已修復
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.