我从节点v0.6.12升级到0.80并开始接收以下错误 - 我已从导入中删除了sys模块但仍然收到错误。任何有用的提示都会有所帮助。我也没有起诉手写笔。
path.exists is now called `fs.exists`.
sys.js:1
throw new Error(
Error: The "sys" module is now called "util".
at sys.js:1:69
at NativeModule.compile (node.js:602:5)
at Function.NativeModule.require (node.js:570:18)
at Function.Module._load (module.js:297:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/node/node_modules/stylus/lib/token.js:12:15)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
答案 0 :(得分:4)
升级到节点v0.8.1。它将解决您的问题