我有一個項目,我開始使用Meteor的舊版本,現在我已經安裝了最新版本。我克隆我的項目的代碼,一旦遇到了問題,我跑meteor
所以我刪除了所有的文件,除了smart.json,smart.lock和packages.json流星:從smart.json/smart.lock安裝軟件包
我跑meteor add meteorhacks:npm
然後meteor
安裝我所需要的節點模塊。它看起來像我需要的所有包在smart.lock文件中。
這應該很簡單,我該如何安裝這些軟件包的最新版本?我認爲只是運行meteor
會選擇他們,但顯然不是。我通過做meteor list
檢查,我沒有看到我需要的所有包。
smart.json:
{
"packages": {
"loading": {},
"jquery-jcrop": {},
"accounts-admin-ui-bootstrap-3": {},
"accounts-ui-bootstrap-3": {},
"font-awesome-4-less": {}
}
}
smart.lock
{
"meteor": {},
"dependencies": {
"basePackages": {
"loading": {},
"jquery-jcrop": {},
"accounts-admin-ui-bootstrap-3": {},
"accounts-ui-bootstrap-3": {},
"font-awesome-4-less": {}
},
"packages": {
"loading": {
"git": "https://github.com/bitIO/meteor-loading.git",
"tag": "v0.0.1",
"commit": "48840a828a614e25d0e19c124494b16f255a902e"
},
"jquery-jcrop": {
"git": "https://github.com/waltyuyu/meteor-jquery-jcrop.git",
"tag": "v0.0.3",
"commit": "45a62562f3d13cbc72a7710472a76cf9c3c589cd"
},
"accounts-admin-ui-bootstrap-3": {
"git": "https://github.com/hharnisc/meteor-accounts-admin-ui-bootstrap-3.git",
"tag": "v0.2.6",
"commit": "fe74692303daf73d440f2729010bcf1557af62ca"
},
"accounts-ui-bootstrap-3": {
"git": "https://github.com/mangasocial/meteor-accounts-ui-bootstrap-3.git",
"tag": "v0.3.5",
"commit": "bbd0a8a46ae02526c2ebfee05fa8075d8d04a9ba"
},
"font-awesome-4-less": {
"git": "https://github.com/svub/fontawesome4-less.git",
"tag": "v4.4.0",
"commit": "250d2336a217c18eb70e9d074784a7db3ca38472"
},
"roles": {
"git": "https://github.com/alanning/meteor-roles.git",
"tag": "v1.2.8",
"commit": "68844ba216c348d332bdb840825850f497f515bb"
}
}
}
}
順便說,無人認領的遷移軟件包需要前綴
mrt
每默認例如font-awesome-4-less
是正確的流星包文件'.meteor/packages'和'。流星/版本' –