Nodejs開發Office外掛程式

來源:互聯網
上載者:User

標籤:ejs   http   https   bsp   nodejs開發   oca   項目   一點   分享   

如果使用Nodejs開發Office外掛程式,需要藉助Yeoman包去產生Office外掛程式

yeoman地址是:http://yeoman.io/generators/,輸入office

源碼地址是:https://github.com/officedev/generator-office

第一部分就是全域安裝yeoman包,及office generator

npm install -g yo generator-office

 

第二部分是利用yeoman命令使用generator-office產生項目

yo office [arguments] [options]

第三部分是運行項目

npm start

這裡做一點說明,在運行項目的時候,會遇到認證錯誤的情況,需要匯入認證,參考地址:https://github.com/OfficeDev/generator-office/blob/master/src/docs/ssl.md

在運行站後,會自動在本地開啟http://localhost:3000(目前預設是3000連接埠,也可以在代碼中變更連接埠)

 

Nodejs開發Office外掛程式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.