{"action":"created","issue":{"url":"https://api.github.com/repos/NervJS/taro/issues/699","repository_url":"https://api.github.com/repos/NervJS/taro","labels_url":"https://api.github.com/repos/NervJS/taro/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/taro/issues/699/comments","events_url":"https://api.github.com/repos/NervJS/taro/issues/699/events","html_url":"https://github.com/NervJS/taro/issues/699","id":363879282,"node_id":"MDU6SXNzdWUzNjM4NzkyODI=","number":699,"title":"taro-init(1) does not exist, try --help","user":{"login":"KerwinChen","id":3135487,"node_id":"MDQ6VXNlcjMxMzU0ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/3135487?v=4","gravatar_id":"","url":"https://api.github.com/users/KerwinChen","html_url":"https://github.com/KerwinChen","followers_url":"https://api.github.com/users/KerwinChen/followers","following_url":"https://api.github.com/users/KerwinChen/following{/other_user}","gists_url":"https://api.github.com/users/KerwinChen/gists{/gist_id}","starred_url":"https://api.github.com/users/KerwinChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KerwinChen/subscriptions","organizations_url":"https://api.github.com/users/KerwinChen/orgs","repos_url":"https://api.github.com/users/KerwinChen/repos","events_url":"https://api.github.com/users/KerwinChen/events{/privacy}","received_events_url":"https://api.github.com/users/KerwinChen/received_events","type":"User","site_admin":false},"labels":[{"id":1112321245,"node_id":"MDU6TGFiZWwxMTEyMzIxMjQ1","url":"https://api.github.com/repos/NervJS/taro/labels/CLI","name":"CLI","color":"4646b5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-09-26T06:42:18Z","updated_at":"2018-11-08T09:03:17Z","closed_at":null,"author_association":"NONE","body":"**问题描述**\r\n\r\n在 Mac 上使用 yarn 全局安装 taro 后，运行 `taro init demo` 报错。\r\n\r\n```\r\n👽 Taro v1.0.3\r\n\r\ntaro-init(1) does not exist, try --help\r\n```\r\n\r\n**复现步骤**\r\n\r\n成功安装 taro：\r\n\r\n```\r\n➜  Taro yarn global add @tarojs/cli   \r\nyarn global v1.10.0\r\nwarning package.json: No license field\r\n[1/4] 🔍  Resolving packages...\r\nwarning @tarojs/cli > babel-plugin-remove-dead-code@1.3.2: use babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions\r\nwarning @tarojs/cli > @tarojs/transformer-wx > babel-plugin-remove-dead-code@1.3.2: use babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions\r\n[2/4] 🚚  Fetching packages...\r\n[3/4] 🔗  Linking dependencies...\r\n[4/4] 📃  Building fresh packages...\r\nsuccess Installed \"@tarojs/cli@1.0.3\" with binaries:\r\n      - taro\r\n✨  Done in 74.88s.\r\n```\r\n\r\n创建项目报错：\r\n\r\n```\r\n➜  Taro taro init demo                \r\n👽 Taro v1.0.3\r\n\r\ntaro-init(1) does not exist, try --help\r\n```\r\n\r\n**期望行为**\r\n\r\n正常使用 cli 工具。\r\n\r\n**系统信息**\r\n\r\n - 操作系统: macOS Mojave 版本 10.14\r\n - Taro 版本 v1.0.3\r\n - Node.js 版本 v10.11.0\r\n\r\n**补充信息**\r\n\r\n有看到之前的一篇文章与我发生了一样的问题，但是重新安装了 cli 之后还是无效。\r\n"},"comment":{"url":"https://api.github.com/repos/NervJS/taro/issues/comments/436921759","html_url":"https://github.com/NervJS/taro/issues/699#issuecomment-436921759","issue_url":"https://api.github.com/repos/NervJS/taro/issues/699","id":436921759,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjkyMTc1OQ==","user":{"login":"zerocsss","id":16165858,"node_id":"MDQ6VXNlcjE2MTY1ODU4","avatar_url":"https://avatars1.githubusercontent.com/u/16165858?v=4","gravatar_id":"","url":"https://api.github.com/users/zerocsss","html_url":"https://github.com/zerocsss","followers_url":"https://api.github.com/users/zerocsss/followers","following_url":"https://api.github.com/users/zerocsss/following{/other_user}","gists_url":"https://api.github.com/users/zerocsss/gists{/gist_id}","starred_url":"https://api.github.com/users/zerocsss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerocsss/subscriptions","organizations_url":"https://api.github.com/users/zerocsss/orgs","repos_url":"https://api.github.com/users/zerocsss/repos","events_url":"https://api.github.com/users/zerocsss/events{/privacy}","received_events_url":"https://api.github.com/users/zerocsss/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T09:03:17Z","updated_at":"2018-11-08T09:03:17Z","author_association":"NONE","body":"npm 安装不了\r\nfetchMetadata: sill fetchPackageMetaData error for @tarojs/transformer-wx@1.1.4 No matching version found\r\n"}}
{"actor":{"display_login":"zerocsss"}}