Skip to content
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

运行wept出错,报Not Found #85

Closed
weilannet opened this issue Feb 19, 2017 · 1 comment
Closed

运行wept出错,报Not Found #85

weilannet opened this issue Feb 19, 2017 · 1 comment

Comments

@weilannet
Copy link

  • wept --version:
    0。9。0
  • node --version:
    5。7。0
  • 操作系统:
    WINDOWS
  • 浏览器及浏览器版本:
    CHROM
  • 与官方工具表现不一致?
    在小程序目录直接运行wept,访问路径localhost:3000/pages/index 报错

错误日志

BadRequestError: Malicious Path
at resolvePath (C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\resolve-path\index.js:77:11)
at C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\koa-send\index.js:69:12
at next (native)
at onFulfilled (C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\co\index.js:65:19)
at C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\co\index.js:54:5
at co (C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\co\index.js:50:10)
at send (C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\koa-send\index.js:36:10)
at Object.serve (C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\koa-static\index.js:41:19)
at next (native)
at Object.allowedMethods (C:\dev\nvm\v5.7.0\node_modules\wept\node_modules\koa-router\lib\router.js:374:5)

界面截图(可选)

@chemzqm
Copy link
Collaborator

chemzqm commented Feb 19, 2017

@weilannet 貌似是 node 5.7.0 的 bug koajs/send#51
请尝试升级 node 版本,另 localhost:3000/pages/index 这个路径是不存在的,请访问 localhost:3000

@chemzqm chemzqm closed this as completed Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants