运行dora+atool老项目遇到的问题

node需要12.x LTS版本
cnpm install

碰到


Warning: Accessing non-existent property xxxx of module exports inside circular dependency
大意是说 : 在依赖循环查找的过程中,使用了一个没有被模块导出的属性 (我这里是 VERSION)

后来切换到 node12.x+ cnpm环境就没有了

Package require os(darwin) not compatible with your platform(win32)

运行 cnpm rebuild node-sass
cnpm install
这是一个可以忽略的错误

Callback must be a function. Received undefined

找相关代码 把参数传个空的匿名函数进去 function(){}

(我这里是 .\node_modules\dora-anyproxy\lib\recorder.js, 搜索 writeFile相关代码,加入function(){} 参数)。

---------------总结
dora很久没有维护的库了,作者在文档上推荐了 roadhog代替。可以考虑升级到 roadhog。

猜你喜欢

转载自www.cnblogs.com/chengyunshen/p/12968337.html