visual studio code + Nodejs + Typescritpt + angularjs2 + bootstrap 環境搭建/Elementary os

來源:互聯網
上載者:User

標籤:url   debian   tar   --   mkdir   常用   需要   apt-get   dev   

1.apt-get update 99% waiting for headers卡住了,fix如下

sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update

2. 安裝git

sudo apt-get install git

3.擷取代碼

git clone https://gitlab.com/shenfeng/uuoffice.git

4. install node js

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -sudo apt-get install -y nodejs

5. 輸入node -v,提示我安裝node-legancy ,只好安裝:

sudo apt install nodejs-legacy
node -v

 

6. 安裝yarn(npm的替代品)---官方的安裝方法,但是貌似鏡像有問題,重新運行第一步,然後跳到第7步

sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpgecho "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.listsudo apt-get update && sudo apt-get install yarn

7. 官方給出的可替換方案(bash指令碼),實際上用的tarball

curl -o- -L https://yarnpkg.com/install.sh | bash

yarn --version(要新開一個Terminal)
 

8. 支援,node 和yarn已經準備就緒。接下來要安裝我項目需要的常用devg工具(比如gulp,sass,typescript等)。如下:

待續。。。

  

visual studio code + Nodejs + Typescritpt + angularjs2 + bootstrap 環境搭建/Elementary os

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.