{"id":32202,"date":"2022-12-05T03:17:27","date_gmt":"2023-04-11T14:34:00","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/"},"modified":"2024-04-29T03:46:38","modified_gmt":"2024-04-28T19:46:38","slug":"%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/","title":{"rendered":"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a"},"content":{"rendered":"<h2>\u7b80\u5355\u5730\u5f97\u51fa\u7ed3\u8bba<\/h2>\n<p>Node.js\u7684\u7248\u672c\u592a\u65e7\uff0c\u5bfc\u81f4eslint\u611f\u5230\u4e0d\u6ee1\u3002<\/p>\n<p>\u5f53\u6211\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u66f4\u65b0\u4e86Node.js\u540e\uff0c\u95ee\u9898\u5c31\u89e3\u51b3\u4e86\uff01<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>apt update <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install <\/span>nodejs <span class=\"nt\">-y<\/span> <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>npm <span class=\"nb\">install <\/span>n <span class=\"nt\">-g<\/span> <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>n stable <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt purge <span class=\"nt\">-y<\/span> nodejs npm <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt update <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt full-upgrade <span class=\"nt\">-y<\/span> <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt autoremove <span class=\"nt\">-y<\/span>\r\n<\/code><\/pre>\n<h2>\u7ecf\u8fc7<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u7531\u4e8e\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u66f4\u6362\u4e86\u7535\u8111\uff0c\u56e0\u6b64\u9700\u8981\u514b\u9686\u5df2\u5b8c\u6210\u521d\u59cb\u8bbe\u7f6e\u7684Git\u4ed3\u5e93\uff0c\u5176\u4e2d\u5305\u62eceslint\u3001prettier\u3001simple-git-hooks\u548clint-staged\u7b49\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>\u56e0\u6b64\uff0c\u7acb\u5373\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5b8c\u6210\u51c6\u5907\u5de5\u4f5c\uff1a<br \/>\ngit clone https:\/\/github.com\/foooooooo\/hogehoge.git<br \/>\ncd hogehoge<br \/>\nnpm ci &amp;&amp; npx simple-git-hooks<\/p>\n<p>\u547d\u4ee4\u7684\u7b80\u8981\u8bf4\u660e\uff1a<br \/>\nnpm ci<br \/>\n\u4f7f\u7528\u7248\u672c\u7ea6\u675f\u8f83\u5bbd\u677e\u7684package.json\u8fdb\u884c\u5305\u5b89\u88c5\uff0c\u4e0d\u4f7f\u7528npm i\u6216npm install\u547d\u4ee4\uff0c\u800c\u662f\u4f7f\u7528package-lock.json\u6587\u4ef6\u4e2d\u8be6\u7ec6\u6307\u5b9a\u7684\u5305\u7248\u672c\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>npx simple-git-hooks<br \/>\n\u5982\u679c\u5728package.json\u4e2d\u8bbe\u7f6e\u4e86simple-git-hooks\u7684\u914d\u7f6e\uff0c\u5219\u4f1a\u521b\u5efa\/.git\/hooks\/\u76ee\u5f55\uff0c\u5e76\u4f9d\u7167\u914d\u7f6e\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<p>npx lint-staged\uff08\u7a0d\u540e\u547d\u4ee4\u5c06\u4f1a\u51fa\u73b0\uff09<br \/>\n\u5982\u679c\u5728package.json\u4e2d\u8bbe\u7f6e\u4e86lint-staged\u7684\u914d\u7f6e\uff0c\u5219\u5c06\u6839\u636e\u914d\u7f6e\uff0c\u5728\u63d0\u4ea4\u4e4b\u524d\u5bf9\u6682\u5b58\u6587\u4ef6\uff08\u5373\u5df2\u6dfb\u52a0\u5230\u6682\u5b58\u533a\u7684\u6587\u4ef6\uff09\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4\u3002\u901a\u5e38\u4f1a\u6267\u884ceslint\u3001prettier\u7b49linter\u548cformatter\u3002<\/p>\n<p>npx eslint .\uff08\u7a0d\u540e\u547d\u4ee4\u5c06\u4f1a\u51fa\u73b0\uff09<br \/>\n\u5bf9\u5f53\u524d\u76ee\u5f55\u6267\u884ceslint\u3002<\/p>\n<p>\u521d\u59cb\u8bbe\u7f6e\u5df2\u5b8c\u6210\uff0c\u4f46\u8fd8\u662f\u8981\u786e\u8ba4simple-git-hooks\u548clint-staged\u7684\u914d\u7f6e\u662f\u5426\u6b63\u786e\uff01<br \/>\nnpx lint-staged<br \/>\n# =&gt; \u62a5\u9519\uff1aUnexpected Identifer<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\uff1f<br \/>\n\u8fd9\u662flint-staged\u51fa\u4e86\u95ee\u9898\u5417\uff1f<br \/>\ngit commit -m &#8220;commit test&#8221;<br \/>\n# =&gt; \u62a5\u9519\uff1aUnexpected Identifer<\/p>\n<p>\u6211\u4e0d\u660e\u767d\u539f\u56e0\u3002<br \/>\n\u9996\u5148\uff0c\u9519\u8bef\u4fe1\u606f\u53ea\u662f&#8221;Unexpected Identifer&#8221;\uff0c\u592a\u7f3a\u4e4f\u4fe1\u606f\u91cf\u4e86\u3002<br \/>\n\u8be6\u7ec6\u67e5\u8be2\u4e0esimple-git-hooks\u3001lint-staged\u3001eslint\u7b49\u76f8\u5173\u7684\u5173\u952e\u8bcd\uff0c\u4e5f\u6ca1\u6709\u627e\u5230\u8be6\u7ec6\u7684\u89e3\u7b54\u4fe1\u606f\u3002\u6211\u8be5\u600e\u4e48\u529e\u5462\uff1f<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>eslint\u5728\u751f\u6c14\u3002<\/p>\n<pre class=\"post-pre\"><code>npx eslint <span class=\"nb\">.<\/span>\r\n<span class=\"c\"># =&gt;typeerror: module.createrequire is not a function...\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u308b<\/span>\r\n<\/code><\/pre>\n<p>\u6839\u636e\u6211\u7684\u8c03\u67e5\uff0c\u622a\u81f32022\u5e749\u670818\u65e5\u6700\u65b0\u7248\u672c\u7684eslint\uff088.23.1\uff09\u652f\u6301\u7684nodejs\u7248\u672c\u662f^12.22.0\u3001^14.17.0\u6216\u8005&gt;=16.0.0\u3002<\/p>\n<p>\u4ee5eslint\u5b58\u50a8\u5e93\u4f5c\u4e3a\u53c2\u8003\u8d44\u6599<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10c437434c4406bf1e37\/11-0.png\" alt=\"image.png\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u4e00\u65b9\uff0c\u57282022\u5e749\u670818\u65e5\uff0c\u901a\u8fc7apt\u5b89\u88c5\u7684node.js\u7248\u672c\u4e3a10.19\u3002<\/p>\n<p>\u5b8c\u5168\u4e0d\u53d7\u652f\u6301\uff01\uff01\uff01\uff01\uff01\uff01<\/p>\n<p>\u80af\u5b9a\u4f1a\u88ab\u9a82\u7684!!!!<\/p>\n<p>\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0Node.js\u81f3\u6700\u65b0\u7248\u672c\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>apt update <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install <\/span>nodejs <span class=\"nt\">-y<\/span> <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>npm <span class=\"nb\">install <\/span>n <span class=\"nt\">-g<\/span> <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>n stable <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt purge <span class=\"nt\">-y<\/span> nodejs npm <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt update <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt full-upgrade <span class=\"nt\">-y<\/span> <span class=\"o\">&amp;&amp;<\/span> <span class=\"nb\">sudo <\/span>apt autoremove <span class=\"nt\">-y<\/span>\r\n<\/code><\/pre>\n<p>\u4e8b\u60c5\u5df2\u53d8\u5f97\u5f88\u987a\u5229\uff01<\/p>\n<h2>\u53c2\u8003\u8d44\u6599<br \/>\n\u6587\u732e\u53c2\u8003<br \/>\n\u8d44\u6599\u6765\u6e90<\/h2>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u5355\u5730\u5f97\u51fa\u7ed3\u8bba Node.js\u7684\u7248\u672c\u592a\u65e7\uff0c\u5bfc\u81f4eslint\u611f\u5230\u4e0d\u6ee1\u3002 \u5f53\u6211\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u66f4\u65b0\u4e86Node.js\u540e [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32202","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0d\u8bba\u662f\u8fdb\u884cgit-commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230unexpected-identifier\u7684\u9519\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u5355\u5730\u5f97\u51fa\u7ed3\u8bba Node.js\u7684\u7248\u672c\u592a\u65e7\uff0c\u5bfc\u81f4eslint\u611f\u5230\u4e0d\u6ee1\u3002 \u5f53\u6211\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u66f4\u65b0\u4e86Node.js\u540e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0d\u8bba\u662f\u8fdb\u884cgit-commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230unexpected-identifier\u7684\u9519\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-11T14:34:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T19:46:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10c437434c4406bf1e37\/11-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/\",\"name\":\"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-11T14:34:00+00:00\",\"dateModified\":\"2024-04-28T19:46:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0d\u8bba\u662f\u8fdb\u884cgit-commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230unexpected-identifier\u7684\u9519\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a","og_description":"\u7b80\u5355\u5730\u5f97\u51fa\u7ed3\u8bba Node.js\u7684\u7248\u672c\u592a\u65e7\uff0c\u5bfc\u81f4eslint\u611f\u5230\u4e0d\u6ee1\u3002 \u5f53\u6211\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u66f4\u65b0\u4e86Node.js\u540e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0d\u8bba\u662f\u8fdb\u884cgit-commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230unexpected-identifier\u7684\u9519\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-11T14:34:00+00:00","article_modified_time":"2024-04-28T19:46:38+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10c437434c4406bf1e37\/11-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/","name":"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-11T14:34:00+00:00","dateModified":"2024-04-28T19:46:38+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4e0d\u8bba\u662f\u8fdb\u884cgit commit\u8fd8\u662f\u8fdb\u884clint-stage\uff0c\u90fd\u4f1a\u906d\u9047\u5230Unexpected Identifier\u7684\u9519\u8bef\u63d0\u793a"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8d%e8%ae%ba%e6%98%af%e8%bf%9b%e8%a1%8cgit-commit%e8%bf%98%e6%98%af%e8%bf%9b%e8%a1%8clint-stage%ef%bc%8c%e9%83%bd%e4%bc%9a%e9%81%ad%e9%81%87%e5%88%b0unexpected-identifier%e7%9a%84%e9%94%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32202"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32202\/revisions"}],"predecessor-version":[{"id":79453,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32202\/revisions\/79453"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}