MuYunyun/create-react-doc

无法初始化

Closed this issue · 3 comments

执行
npx create-react-doc doc
npm init create-react-doc doc
yarn create create-react-doc doc
任意一条,都会报安装超时的错误;根据https://github.com/yarnpkg/yarn/issues/4890的几个方案也不行(win平台)

Welcome your first issue here, thanks

换镜像之后可行,但是在部署到github page的时候遇到另一个问题:

Run actions/setup-node@v2.1.0
  with:
    node-version: 12.x
    always-auth: false
    check-latest: false
    token: ***
Found in cache @ C:\hostedtoolcache\windows\node\12.20.0\x64
Error: Unable to process command '::add-path::C:\hostedtoolcache\windows\node\12.20.0\x64' successfully.
Error: The `add-path` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

换镜像之后可行,但是在部署到github page的时候遇到另一个问题:

Run actions/setup-node@v2.1.0
  with:
    node-version: 12.x
    always-auth: false
    check-latest: false
    token: ***
Found in cache @ C:\hostedtoolcache\windows\node\12.20.0\x64
Error: Unable to process command '::add-path::C:\hostedtoolcache\windows\node\12.20.0\x64' successfully.
Error: The `add-path` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

这个问题我这里没遇到过。可以看下 actions/setup-node 这个 github-action 的一些配置项。

如果自动发版不行的话, 可以临时先采取手动发版