-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不兼容cnpm 4.2.0 #5
Comments
cnpm最新的就是4.2.0 这个镜像国内还是很多人用的吧 |
@wssgcg1213 感谢~ 👍 . 建议给 https://github.com/17koa/runkoa 提 PR
话说这么拼接路径真是不知道说什么好... |
@knight42 runkoa本身就是个hack方案,哈哈 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LOG:
我修改 node_modules/runkoa/index.js 里这部分成这样就可以了
cnpm 用的 npminstall 的目录结构是软链的, 所以直接用__dirname 来拼接dir路径是会报错的, 我觉得可以直接用require('xxx')这种写法是babel 文档中支持的, 另一种是利用path.join(), 后者我没试过 可以试试
The text was updated successfully, but these errors were encountered: