Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

使用绝对路径读取路由文件注册 #297

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

Gavin-Gong
Copy link
Contributor

使用相对路径会导致在非项目根目录执行 app.js 会报错, 例如在项目目录外一层执行 node NeteaseCloudMusicApi/app.js

Error: ENOENT: no such file or directory, scandir './router/'

所以改用绝对路径

@Binaryify Binaryify merged commit 7b43c89 into Binaryify:master Aug 28, 2018
Binaryify pushed a commit that referenced this pull request Aug 6, 2019
使用绝对路径读取路由文件注册
Binaryify pushed a commit that referenced this pull request Aug 6, 2019
使用绝对路径读取路由文件注册
Binaryify added a commit that referenced this pull request Aug 6, 2019
使用绝对路径读取路由文件注册
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants