1. 程式人生 > >關於Meteor的microscope教程中《使用者系統》遇到問題解決方法

關於Meteor的microscope教程中《使用者系統》遇到問題解決方法

在該教程的《使用者系統》章節中,需要安裝2個npm包:


meteor add ian:accounts-ui-bootstrap-3
meteor add accounts-password

1、關於accounts-ui-bootstrap-3安裝,一般情況會成功,但是執行報錯:
While building for web.browser:
error: no plugin found for accounts_ui.styl in ian:accounts-ui-bootstrap-3; a plugin for *.styl
was active when it was published but none is now

解決方案:

(1)先刪除:meteor remove ian:accounts-ui-bootstrap-3

(2)然後新增:meteor add stylus

(3)然後再新增:meteor add ian:accounts-ui-bootstrap-3

2、關於accounts-password安裝報錯:

和windows系統,vs版本有關的問題在網上有很多解決方案,主要解決一個重要問題:版本問題

每次安裝的錯誤中,都會有一個[email protected],也就是每次安裝都會安裝0.7.7這個版本

解決方案:

(1)系統先設定顯示隱藏檔案

(2)在該專案檔案中找到的.meteor裡的versions,把

[email protected]後的數字改成0.9.2(或者另外建立一個專案直接新增該包,如果能新增上,就在那個專案中看版本號是多少)如果沒有[email protected]就直接加上

(3)meteor npm install --save bcrypt

(4)meteor add accounts-password

其它方案:

(1)npm install bcrypt

(2)meteor add accounts-password

系統:Linux ubuntu / MAC OS (windows目前沒有很好的解決方案)