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

4.4.4章节,在敲完代码执行supervisor index.js命令后,报如下错误,是path 类型不对吗 TypeError: Cannot read property 'length' of undefined at pathtoRegexp (/Users/wubaolin/Desktop/myblog/node_modules/path-to-regexp/index.js:63:49),Starting child process with 'node index.js' /Users/wubaolin/Desktop/myblog/node_modules/path-to-regexp/index.js:63 path = ('^' + path + (strict ? '' : path[path.length - 1] === '/' ? '?' : '/?')) #473

Open
loverw opened this issue May 25, 2019 · 0 comments

Comments

@loverw
Copy link

loverw commented May 25, 2019

提问方式:

  1. 请先从错误栈自己定位问题,尝试亲自解决问题
  2. 解决不了再去历史 isuue 里查看是否有相似的问题
  3. 最后,提交新的 issue,并将错误代码提交到你的 GitHub,我抽空会帮你调试

不好的提问方式:

  1. 只有标题,没有描述
  2. 描述不清楚
@loverw loverw changed the title 4.4.4TypeError: Cannot read property 'length' of undefined at pathtoRegexp (/Users/wubaolin/Desktop/myblog/node_modules/path-to-regexp/index.js:63:49),Starting child process with 'node index.js' /Users/wubaolin/Desktop/myblog/node_modules/path-to-regexp/index.js:63 path = ('^' + path + (strict ? '' : path[path.length - 1] === '/' ? '?' : '/?')) 4.4.4章节,在敲完代码执行supervisor index.js命令后,报如下错误,是path 类型不对吗 TypeError: Cannot read property 'length' of undefined at pathtoRegexp (/Users/wubaolin/Desktop/myblog/node_modules/path-to-regexp/index.js:63:49),Starting child process with 'node index.js' /Users/wubaolin/Desktop/myblog/node_modules/path-to-regexp/index.js:63 path = ('^' + path + (strict ? '' : path[path.length - 1] === '/' ? '?' : '/?')) May 25, 2019
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

1 participant