{"id":32572,"date":"2023-02-02T09:09:47","date_gmt":"2023-03-14T14:33:28","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/"},"modified":"2024-04-29T12:43:25","modified_gmt":"2024-04-29T04:43:25","slug":"%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/","title":{"rendered":"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp"},"content":{"rendered":"<p>\u7531\u4e8e\u5c1d\u8bd5\u5728Ubuntu\u4e0a\u5b89\u88c5clasp\u4ee5\u7f16\u5199GAS\u9047\u5230\u4e86\u4e00\u4e9b\u9ebb\u70e6\uff0c\u6240\u4ee5\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n<h2>\u5728apt\u4e0a\u5b89\u88c5npm\u3002<\/h2>\n<p>\u5b89\u88c5nodejs\u548cnpm\u662f\u4e3a\u4e86\u5b89\u88c5clasp\u6240\u5fc5\u9700\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt install nodejs\r\nsudo apt install npm\r\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u65f6\u5019<\/p>\n<pre class=\"post-pre\"><code>\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\r\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059                \r\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u304a\u305d\u3089\u304f\u3001\u3042\u308a\u5f97\r\n\u306a\u3044\u72b6\u6cc1\u3092\u8981\u6c42\u3057\u305f\u304b\u3001(\u4e0d\u5b89\u5b9a\u7248\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\r\n\u3067\u3042\u308c\u3070) \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u307e\u3060\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u308a Incoming \u304b\u3089\u79fb\r\n\u52d5\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\r\n\u4ee5\u4e0b\u306e\u60c5\u5831\u304c\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u5f79\u7acb\u3064\u304b\u3082\u3057\u308c\u307e\u305b\u3093:\r\n\r\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u6e80\u305f\u305b\u306a\u3044\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059:\r\n npm : \u4f9d\u5b58: node-gyp (&gt;= 0.10.9) \u3057\u304b\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u305b\u3093\r\nE: \u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u58ca\u308c\u305f\u5909\u66f4\u7981\u6b62\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002\r\n\r\n<\/code><\/pre>\n<p>\u800c\u8fd9\u5bfc\u81f4\u4e86\u65e0\u6cd5\u5b89\u88c5npm\u7684\u9519\u8bef\u3002<\/p>\n<h2>\u4f7f\u7528aptitude<\/h2>\n<p>\u770b\u8d77\u6765\u7531\u4e8e\u8f6f\u4ef6\u5305\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u51fa\u4e86\u95ee\u9898\uff0c\u5bfc\u81f4\u5931\u8d25\u4e86\u3002\u4f3c\u4e4e\u53ef\u4ee5\u4f7f\u7528aptitude\u6765\u4fee\u590d\uff0c\u6211\u4f1a\u8bd5\u4e00\u8bd5\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt install aptitude\r\nsudo aptitude install nodejs-dev\r\n<\/code><\/pre>\n<p>\u5982\u679c\u8fd9\u6837\u505a\uff0c\u5b83\u4f1a\u663e\u793a\u5404\u79cd\u89e3\u51b3\u65b9\u6cd5\u3002\u6211\u8ba4\u4e3a\u6682\u65f6\u770b\u8d77\u6765\u6ca1\u95ee\u9898\uff0c\u6240\u4ee5\u8f93\u5165&#8221;y&#8221;\u7ee7\u7eed\u8fdb\u884c\u3002<\/p>\n<p>\u518d\u4e00\u6b21<\/p>\n<pre class=\"post-pre\"><code>sudo apt install npm\r\n<\/code><\/pre>\n<p>\u5982\u679c\u5b89\u88dd\u6210\u529f\u7684\u8a71\u3002<\/p>\n<h2>\u5b89\u88c5clasp<\/h2>\n<p>\u53ea\u9700\u6309\u7167\u5b98\u65b9\u6587\u4ef6\u7684\u6307\u793a\u8fdb\u884c\u5b89\u88c5\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo npm i @google\/clasp -g\r\n<\/code><\/pre>\n<h2>\u8bf7\u53c2\u8003\u4e0b\u65b9\u94fe\u63a5<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u5c1d\u8bd5\u5728Ubuntu\u4e0a\u5b89\u88c5clasp\u4ee5\u7f16\u5199GAS\u9047\u5230\u4e86\u4e00\u4e9b\u9ebb\u70e6\uff0c\u6240\u4ee5\u8bb0\u5f55\u4e0b\u6765\u3002 \u5728apt\u4e0a\u5b89\u88c5npm\u3002 \u5b89\u88c5 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32572","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>\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp - 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\/\u5728ubuntu-18-04\u4e0a\u5b89\u88c5clasp\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp\" \/>\n<meta property=\"og:description\" content=\"\u7531\u4e8e\u5c1d\u8bd5\u5728Ubuntu\u4e0a\u5b89\u88c5clasp\u4ee5\u7f16\u5199GAS\u9047\u5230\u4e86\u4e00\u4e9b\u9ebb\u70e6\uff0c\u6240\u4ee5\u8bb0\u5f55\u4e0b\u6765\u3002 \u5728apt\u4e0a\u5b89\u88c5npm\u3002 \u5b89\u88c5 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ubuntu-18-04\u4e0a\u5b89\u88c5clasp\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-14T14:33:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T04:43:25+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\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%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/\",\"name\":\"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-14T14:33:28+00:00\",\"dateModified\":\"2024-04-29T04:43:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp\"}]},{\"@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\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp - 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\/\u5728ubuntu-18-04\u4e0a\u5b89\u88c5clasp\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp","og_description":"\u7531\u4e8e\u5c1d\u8bd5\u5728Ubuntu\u4e0a\u5b89\u88c5clasp\u4ee5\u7f16\u5199GAS\u9047\u5230\u4e86\u4e00\u4e9b\u9ebb\u70e6\uff0c\u6240\u4ee5\u8bb0\u5f55\u4e0b\u6765\u3002 \u5728apt\u4e0a\u5b89\u88c5npm\u3002 \u5b89\u88c5 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ubuntu-18-04\u4e0a\u5b89\u88c5clasp\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-14T14:33:28+00:00","article_modified_time":"2024-04-29T04:43:25+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/","name":"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-14T14:33:28+00:00","dateModified":"2024-04-29T04:43:25+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5clasp"}]},{"@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\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu-18-04%e4%b8%8a%e5%ae%89%e8%a3%85clasp%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\/32572","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32572"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32572\/revisions"}],"predecessor-version":[{"id":85348,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32572\/revisions\/85348"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}