{"id":39086,"date":"2022-11-30T20:36:10","date_gmt":"2023-04-15T17:35:22","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/"},"modified":"2024-04-29T03:09:42","modified_gmt":"2024-04-28T19:09:42","slug":"%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/","title":{"rendered":"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap"},"content":{"rendered":"<p>\u7ee7\u7eed\u4e4b\u524d\u7684\u8bdd\u9898\uff0c\u6211\u4eec\u8981\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b89\u88c5bootstrap\u3002<\/p>\n<h2>\u64cd\u4f5c\u6b65\u9aa4<\/h2>\n<p>\u7531\u4e8e\u5e0c\u671b\u5728\u5168\u5c40\u8303\u56f4\u4e2d\u8fdb\u884c\u5f15\u7528\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u53c2\u8003\u8fdb\u884c\u64cd\u4f5c\uff1a<br \/>\nhttps:\/\/github.com\/angular\/angular-cli#global-library-installation<\/p>\n<p>\u7531\u4e8e\u65e0\u6cd5\u7acb\u5373\u5b89\u88c5\uff0c\u8fdb\u884c\u4e86\u8c03\u67e5\u3002<br \/>\nhttp:\/\/stackoverflow.com\/questions\/39017376\/angular-cli-webpack-3rd-part-css-files<\/p>\n<p>\u63d0\u5347angular-cli\u7684\u7248\u672c\u5e76\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>npm install angular-cli@latest\r\n<\/code><\/pre>\n<p>\u7136\u540e\uff0c\u901a\u8fc7ng new PROJECT_NAME\u91cd\u65b0\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5b89\u88c5bootstrap\u3002<\/p>\n<pre class=\"post-pre\"><code>npm install bootstrap@next --save\r\n<\/code><\/pre>\n<p>&#8220;\u5c06&#8221;bootstrap&#8221;: &#8220;^4.0.0-alpha.5&#8243; \u6dfb\u52a0\u5230 package.json&#8221;<\/p>\n<p>\u8bf7\u5c06angular-cli.json\u6587\u4ef6\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Kobito.EFLn4f.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d389837434c4406c769b1\/10-0.png\" alt=\"Kobito.EFLn4f.png\" \/><\/div>\n<p>\u8fdb\u884c\u4fee\u6b63\u540e\uff0c\u6267\u884c ng serve \u5e76\u91cd\u65b0\u6784\u5efa\uff0cBootstrap \u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/p>\n<p>\u8fd9\u6b21\u7684sample\u5df2\u7ecf\u88ab\u63a8\u9001\u5230GitHub\u4e86\u3002<br \/>\nhttps:\/\/github.com\/kkeisuke\/angular-cli-sample\/commit\/03cf9d100572cb5219640ae9aa2c5181c5d6f5a3<\/p>\n<h2>\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u8fd8\u6ce8\u610f\u5230\u5176\u4ed6\u7684\u4e00\u4e9b\u95ee\u9898\u3002<\/h2>\n<ul class=\"post-ul\">\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u69cb\u6210\u304c\u5909\u308f\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/ul>\n<pre class=\"post-pre\"><code>.\r\n\u251c\u2500\u2500 e2e\r\n\u2514\u2500\u2500 src\r\n    \u251c\u2500\u2500 app\r\n    \u251c\u2500\u2500 assets\r\n    \u2514\u2500\u2500 environments\r\n<\/code><\/pre>\n<p>ng new PROJECT_NAME \u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u3082\u51fa\u6765\u308b\u306e\u3067\u3001\u304b\u306a\u308a\u4fbf\u5229<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Kobito.4UVEqf.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d389837434c4406c769b1\/17-0.png\" alt=\"Kobito.4UVEqf.png\" \/><\/div>\n<p>ng \u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u3001watchman \u306e\u30a8\u30e9\u30fc\u304c\u3067\u308b\u3002<\/p>\n<p>issue \u304c\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u307e\u3060\u30af\u30ed\u30fc\u30ba\u3055\u308c\u3066\u3044\u306a\u3044\u6a21\u69d8 (2016\/10\/26)<\/p>\n<p>https:\/\/github.com\/angular\/angular-cli\/issues\/2791<\/p>\n<pre class=\"post-pre\"><code>Could not start watchman; falling back to NodeWatcher for file system events.\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7ee7\u7eed\u4e4b\u524d\u7684\u8bdd\u9898\uff0c\u6211\u4eec\u8981\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b89\u88c5bootstrap\u3002 \u64cd\u4f5c\u6b65\u9aa4 \u7531\u4e8e\u5e0c\u671b [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39086","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>\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap - 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\/\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap\" \/>\n<meta property=\"og:description\" content=\"\u7ee7\u7eed\u4e4b\u524d\u7684\u8bdd\u9898\uff0c\u6211\u4eec\u8981\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b89\u88c5bootstrap\u3002 \u64cd\u4f5c\u6b65\u9aa4 \u7531\u4e8e\u5e0c\u671b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-15T17:35:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T19:09:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d389837434c4406c769b1\/10-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/\",\"name\":\"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-15T17:35:22+00:00\",\"dateModified\":\"2024-04-28T19:09:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap\"}]},{\"@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\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap - 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\/\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap","og_description":"\u7ee7\u7eed\u4e4b\u524d\u7684\u8bdd\u9898\uff0c\u6211\u4eec\u8981\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b89\u88c5bootstrap\u3002 \u64cd\u4f5c\u6b65\u9aa4 \u7531\u4e8e\u5e0c\u671b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-15T17:35:22+00:00","article_modified_time":"2024-04-28T19:09:42+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d389837434c4406c769b1\/10-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/","name":"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-15T17:35:22+00:00","dateModified":"2024-04-28T19:09:42+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728\u4f7f\u7528angular-cli\u521b\u5efa\u7684\u5e94\u7528\u4e2d\u5b89\u88c5bootstrap"}]},{"@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\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8angular-cli%e5%88%9b%e5%bb%ba%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%ad%e5%ae%89%e8%a3%85bootstrap%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39086","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39086"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39086\/revisions"}],"predecessor-version":[{"id":77358,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39086\/revisions\/77358"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}