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

umi-mock例子无法运行 #37

Open
guwan opened this issue Jun 14, 2021 · 1 comment
Open

umi-mock例子无法运行 #37

guwan opened this issue Jun 14, 2021 · 1 comment

Comments

@guwan
Copy link

guwan commented Jun 14, 2021

运行yarn dev

报如下错误:
yarn run v1.22.5
error Couldn't find a package.json file in "F:\IdeaProjects\examples"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

F:\IdeaProjects\examples>cd umi-mock

F:\IdeaProjects\examples\umi-mock>yarn dev
yarn run v1.22.5
$ concurrently 'remax build -t ali -w' 'umi dev'
F:\IdeaProjects\examples\umi-mock\node_modules\rxjs\internal\util\hostReportError.js:4
setTimeout(function () { throw err; }, 0);
^

RangeError: Format string contains an unescaped latin alphabet character l
at F:\IdeaProjects\examples\umi-mock\node_modules\date-fns\format\index.js:442:13
at Array.map ()
at format (F:\IdeaProjects\examples\umi-mock\node_modules\date-fns\format\index.js:415:45)
at Logger.getPrefixesFor (F:\IdeaProjects\examples\umi-mock\node_modules\concurrently\src\logger.js:38:19)
at Logger.getPrefix (F:\IdeaProjects\examples\umi-mock\node_modules\concurrently\src\logger.js:48:31)
at Logger.logCommandText (F:\IdeaProjects\examples\umi-mock\node_modules\concurrently\src\logger.js:73:53)
at SafeSubscriber._next (F:\IdeaProjects\examples\umi-mock\node_modules\concurrently\src\flow-control\log-output.js:9:58)
at SafeSubscriber.__tryOrUnsub (F:\IdeaProjects\examples\umi-mock\node_modules\rxjs\internal\Subscriber.js:205:16)
at SafeSubscriber.next (F:\IdeaProjects\examples\umi-mock\node_modules\rxjs\internal\Subscriber.js:143:22)
at Subscriber._next (F:\IdeaProjects\examples\umi-mock\node_modules\rxjs\internal\Subscriber.js:89:26)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@watsonhaw5566
Copy link

watsonhaw5566 commented Aug 17, 2021

你好,经过我们这边测试是可以的,麻烦检查一下是否是依赖包安装的问题。建议使用国内npm源

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