运行nodejs自带测试例的时候,出现错误:
Path: simple/test-child-process-fork3
fs.js:1266
if (!stat.isSymbolicLink()) {
^
TypeError: Object has no method 'isSymbolicLink'
at Object.realpathSync (fs.js:1266:17)
at tryFile (module.js:142:15)
at Function.Module._findPath (module.js:181:18)
at Function.Module._resolveFilename (module.js:336:25)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
很奇怪,fs.js里面明明有isSymbolicLink的定义。。。。
fs.Stats.prototype.isSymbolicLink = function() {
return this._checkModeProperty(constants.S_IFLNK);
};
有人遇到过这种错误么?求帮忙~
--
FROM 114.113.57.*