"require.paths is removed..." 是版本问题嘛?

72 views
Skip to first unread message

Zoom.Quiet

unread,
Mar 27, 2012, 4:05:25 AM3/27/12
to cno...@googlegroups.com
恢复一遗留系统,运行失败,吼:

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the
NODE_PATH environment variable instead.
at Function.<anonymous> (module.js:378:11)
...

是否, node 版本兼容问题? 0.6 之后,没有 require.paths?
代码在: https://github.com/QLeelulu/kis-711/blob/master/run.js
已经下载有 n2Mvc

--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
俺: http://about.me/zoom.quiet
文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/

吕健

unread,
Mar 27, 2012, 4:28:58 AM3/27/12
to cno...@googlegroups.com
曾经被这个问题折腾过.
0.6 之后是没有 require.paths , 遗留系统还是用老环境的好。

Yuan Feng

unread,
Mar 27, 2012, 7:39:17 AM3/27/12
to cno...@googlegroups.com
此方式已经去错

Sent from my iPhone

Zoom.Quiet

unread,
Mar 27, 2012, 7:46:09 AM3/27/12
to cno...@googlegroups.com
2012/3/27 Yuan Feng <fen...@gmail.com>:
> 此方式已经去错
>
- 坚定的安装 /usr/ports/www/node04
使用 0.4.12 兼容旧系統,,

Ray Chaos

unread,
Mar 28, 2012, 7:11:10 AM3/28/12
to cnodejs
新版本用module.paths吧
Reply all
Reply to author
Forward
0 new messages