{"id":18916,"date":"2020-02-05T14:11:39","date_gmt":"2020-02-05T06:11:39","guid":{"rendered":"http:\/\/4563.org\/?p=18916"},"modified":"2020-02-05T14:11:39","modified_gmt":"2020-02-05T06:11:39","slug":"%e3%80%90%e4%b8%8d%e6%87%82%e5%b0%b1%e8%a6%81%e9%97%ae%e3%80%91%e8%af%b7%e6%95%99%ef%bc%8c%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-now-cli-%e5%b7%a5%e5%85%b7%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=18916","title":{"rendered":"\u3010\u4e0d\u61c2\u5c31\u8981\u95ee\u3011\u8bf7\u6559\uff0c\u5982\u4f55\u5b89\u88c5 NOW CLI \u5de5\u5177\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>imsun<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-26 07:43:21\t<\/p>\n<h3>\u3010\u4e0d\u61c2\u5c31\u8981\u95ee\u3011\u8bf7\u6559\uff0c\u5982\u4f55\u5b89\u88c5 NOW CLI \u5de5\u5177\uff1f<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 imsun \u4e8e 2020-1-26 07:44 \u7f16\u8f91 <\/p>\n<p> debian 9 \u840c\u5496<\/p>\n<p>  apt-get install git<br \/>  apt-get install now<br \/>  apt-get install nmp<br \/>  npm i -g now<\/p>\n<p>  \u6240\u6709\u7684\u53e3\u4ee4\u6211\u90fd\u8bd5\u8fc7\u4e86\uff0c\u8fd8\u662f\u65e0\u6cd5\u5b89\u88c5<\/p>\n<p>  \u6e90\u4e5f\u6362\u6210\u4e86 \u963f\u91ccdebian9 \u6e90\uff0c\u4f9d\u65e7\u8fd8\u662f\u65e0\u6cd5\u5b89\u88c5<\/p>\n<p>  &#8212;<br \/>  E: Unable to locate package now<br \/>  root@debian:~# npm i -g now<br \/>  -bash: npm: command not found<br \/>  root@debian:~# now login<br \/>  -bash: now: command not found<br \/>  root@debian:~# apt-get install nmp<br \/>  Reading package lists&#8230; Done<br \/>  Building dependency tree&nbsp; &nbsp;&nbsp; &nbsp; <br \/>  Reading state information&#8230; Done<br \/>  E: Unable to locate package nmp  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>google-chrome<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-26 07:46:42\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u5e94\u8be5\u8d34\u51fanow-cli\u8fd9\u4e2a\u5de5\u5177\u7684\u5730\u5740\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u84dd\u7626\u9999\u83c7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-26 07:47:47\t<\/p>\n<h3><\/h3>\n<p>  \t\tnpm\u90fd\u6ca1\u88c5\u4e0a\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>google-chrome<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-26 07:50:37\t<\/p>\n<h3><\/h3>\n<p>  \t\tUnable to locate package nmp \u662f npm\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>google-chrome<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-26 08:00:21\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 google-chrome \u4e8e 2020-1-26 08:02 \u7f16\u8f91 <\/p>\n<p> https:\/\/github.com\/nodesource\/distributions<br \/>  sudo apt-get install -y curl<br \/>  sudo curl -sL https:\/\/deb.nodesource.com\/setup_13.x | bash &#8211;<br \/>  sudo apt-get install -y nodejs<\/p>\n","protected":false},"excerpt":{"rendered":"<p>imsun \u5927\u4f6c\u6709\u8bdd\u8bf4 : 202&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/18916"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18916"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/18916\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18916"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}