編譯meteor項目

來源:互聯網
上載者:User

meteor開發環境搭建:http://blog.csdn.net/u010947098/article/details/54290159


這裡是編譯meteor項目的第二步,正式開始編譯。

1.進入項目的目錄,我這裡的是  cd /root/bin/meteor/BizInsurance

2.查看package.json檔案,這個檔案中記錄了項目所需要的外掛程式,以及外掛程式的版本資訊;

下面是項目的package.json檔案內容:

{  "name": "******",  "private": true,  "scripts": {    "start": "meteor run"  },  "dependencies": {    "autoprefixer": "^6.3.1",    "classnames": "^2.2.3",    "crypto-js": "^3.1.6",    "encoding": "^0.1.12",    "faker": "^3.0.1",    "history": "^3.0.0",    "jquery": "^3.1.0",    "lrz": "^4.9.40",    "meteor-node-stubs": "~0.2.0",    "ph-swipe": "^0.1.9",    "platform-ws-client": "^1.0.3",    "react": "^15.3.1",    "react-addons-css-transition-group": "^15.3.1",    "react-addons-pure-render-mixin": "^15.1.0",    "react-dom": "^15.3.1",    "react-image-gallery": "^0.6.9",    "react-router": "^2.7.0",    "react-semantify": "^0.5.2",    "react-tap-event-plugin": "^1.0.0",    "semantic-ui-accordion": "^2.2.2",    "semantic-ui-dimmer": "^2.2.3",    "semantic-ui-dropdown": "^2.2.3",    "semantic-ui-modal": "^2.2.3",    "semantic-ui-tab": "^2.2.3",    "semantic-ui-transition": "^2.2.3",    "weixin-pay": "^1.1.7",    "xmldom": "^0.1.22"  }}

3.使用meteor npm install 命令添加項目所需要的外掛程式。

也許是因為我的網路環境問題,使用meteor npm install命令時,容易卡死;退而求其次,使用meteor npm install xmldom@0.1.22命令來附加元件目所需要的外掛程式,根據package.json檔案中所定義的外掛程式,都使用meteor npm install *** 來載入。

4.編譯器,meteor

在這一步,也許還會出現問題,比如缺少外掛程式,然後根據錯誤提示,使用第三步來解決。

如果出現代碼編譯不通過,也許需要注釋調一些代碼;

5.再次編譯,meteor

6.編譯成功。

聯繫我們

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