node开发Web服务器报错(二)之 NotFoundError: Not Found
文章栏目317231720
发布时间:2019-02-21 10:48:35

概述

追梦猪(zmz)在进行node路由访问的时候突然报错,只提示了NotFoundError: Not Found 字样跟一些报错提示,寻找半天发现是我们没有定义当前访问的路由产生了如下错误,在此记录。

NotFoundError: Not Found
    at D:\Documents\HBuilderProject\123\app\app.js:28:8
    at Layer.handle [as handle_request] (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\layer.js:95:5)
    at trim_prefix (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:317:13)
    at D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:284:7
    at Function.process_params (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:335:12)
    at next (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:275:10)
    at D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:635:15
    at next (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:260:14)
    at Function.handle (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:174:3)
    at router (D:\Documents\HBuilderProject\123\app\node_modules\express\lib\router\index.js:47:12)

node开发Web服务器报错(二)之 NotFoundError: Not Found