运行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。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM