我正在使用create-react-app开发一个React应用,最近我在VS Code终端中看到了一些对我来说似乎是可疑的错误。看来是一个名为“ express”的库正在尝试查找win.ini
文件,并与/etc/passwd
有关。
为什么需要查看这些内容?
我在NPM上查找了“ express”,它看起来像一个轻量级的Web服务器。那是create-react-app用作开发服务器的东西吗?
URIError: Failed to decode param '/%c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/windows/win.ini'
at decodeURIComponent (<anonymous>)
at decode_param (C:\path\to\my\project\node_modules\express\lib\router\layer.js:172:12)
at Layer.match (C:\path\to\my\project\node_modules\express\lib\router\layer.js:123:27)
at matchLayer (C:\path\to\my\project\node_modules\express\lib\router\index.js:574:18)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:220:15)
at expressInit (C:\path\to\my\project\node_modules\express\lib\middleware\init.js:40:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:275:10)
at query (C:\path\to\my\project\node_modules\express\lib\middleware\query.js:45:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
URIError: Failed to decode param '/%c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/%c0%2e%c0%2e/winnt/win.ini'
at decodeURIComponent (<anonymous>)
at decode_param (C:\path\to\my\project\node_modules\express\lib\router\layer.js:172:12)
at Layer.match (C:\path\to\my\project\node_modules\express\lib\router\layer.js:123:27)
at matchLayer (C:\path\to\my\project\node_modules\express\lib\router\index.js:574:18)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:220:15)
at expressInit (C:\path\to\my\project\node_modules\express\lib\middleware\init.js:40:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:275:10)
at query (C:\path\to\my\project\node_modules\express\lib\middleware\query.js:45:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
URIError: Failed to decode param '/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/windows/win.ini'
at decodeURIComponent (<anonymous>)
at decode_param (C:\path\to\my\project\node_modules\express\lib\router\layer.js:172:12)
at Layer.match (C:\path\to\my\project\node_modules\express\lib\router\layer.js:123:27)
at matchLayer (C:\path\to\my\project\node_modules\express\lib\router\index.js:574:18)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:220:15)
at expressInit (C:\path\to\my\project\node_modules\express\lib\middleware\init.js:40:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:275:10)
at query (C:\path\to\my\project\node_modules\express\lib\middleware\query.js:45:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
URIError: Failed to decode param '/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/winnt/win.ini'
at decodeURIComponent (<anonymous>)
at decode_param (C:\path\to\my\project\node_modules\express\lib\router\layer.js:172:12)
at Layer.match (C:\path\to\my\project\node_modules\express\lib\router\layer.js:123:27)
at matchLayer (C:\path\to\my\project\node_modules\express\lib\router\index.js:574:18)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:220:15)
at expressInit (C:\path\to\my\project\node_modules\express\lib\middleware\init.js:40:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:275:10)
at query (C:\path\to\my\project\node_modules\express\lib\middleware\query.js:45:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
URIError: Failed to decode param '/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/%uff0e%uff0e/etc/passwd'
at decodeURIComponent (<anonymous>)
at decode_param (C:\path\to\my\project\node_modules\express\lib\router\layer.js:172:12)
at Layer.match (C:\path\to\my\project\node_modules\express\lib\router\layer.js:123:27)
at matchLayer (C:\path\to\my\project\node_modules\express\lib\router\index.js:574:18)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:220:15)
at expressInit (C:\path\to\my\project\node_modules\express\lib\middleware\init.js:40:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)
at next (C:\path\to\my\project\node_modules\express\lib\router\index.js:275:10)
at query (C:\path\to\my\project\node_modules\express\lib\middleware\query.js:45:5)
at Layer.handle [as handle_request] (C:\path\to\my\project\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\path\to\my\project\node_modules\express\lib\router\index.js:317:13)
at C:\path\to\my\project\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\path\to\my\project\node_modules\express\lib\router\index.js:335:12)