2016-04-03 84 views
4

我沒有改變任何依賴關係,但是當我部署到Heroku時,突然間我的構建突破了。請參閱下面的錯誤消息以獲取更多信流星打造部署到Heroku

-----> Fetching set buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git... done 
-----> Node.js app detected 
-----> Installing node 
-----> Installing meteor 
Downloading Meteor distribution 
Meteor 1.3 has been installed in your home directory (~/.meteor). 
Now you need to do one of the following: 
    (1) Add "$HOME/.meteor" to your path, or 
    (2) Run this command as root: 
     cp "/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/1.3.0_3/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor 
Then to get started, take a look at 'meteor --help' or see the docs at 
docs.meteor.com. 
-----> Upgrading meteor to [email protected] 
Installed. Run 'meteor update --release 1.2.1' inside of a particular project 
directory to update that project to Meteor 1.2.1. 
-----> Bundling bundle 
While removing platforms: 
error: android: platform is not in this project 
-----> Building Meteor with ROOT_URL: https://####.herokuapp.com 
npm-container: updating npm dependencies -- scrap, open-graph, future, 
react-linkify, externalify, react-modal, react-dom... 
=> Errors while initializing project: 
While building package npm-container: 
error: couldn't install npm packages from npm-shrinkwrap: Command failed: npm 
WARN package.json [email protected] No description 
npm WARN package.json [email protected] No repository 
field. 
npm WARN package.json [email protected] No README data 
npm WARN deprecated [email protected]: the module is now available as 
'css-select' 
npm WARN deprecated [email protected]: the module is now available as 
'css-select' 
npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: 
{"node":"0.10.40","npm":"1.4.28"}) 
npm WARN deprecated [email protected]: the module is now available as 'css-what' 
npm ERR! Error: version not found: [email protected] 
npm ERR!  at 
/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/cache/add-named.js:125:12 
npm ERR!  at saved 
(/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:167:7) 
npm ERR!  at Object.oncomplete (fs.js:108:15) 
npm ERR! If you need help, you may report this *entire* log, 
npm ERR! including the npm and node versions, at: 
npm ERR!  <http://github.com/npm/npm/issues> 
npm ERR! System Linux 3.13.0-79-generic 
npm ERR! command 
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node" 
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm" 
"install" 
npm ERR! cwd 
/tmp/build_99da0b7813d9d5f66b76750d44ec8399/####-af203ae940e85f2aa3e34bfa11a1028cc9cc7c8c/packages/npm-container/.npm/package-new-13b38xe 
npm ERR! node -v v0.10.40 
npm ERR! npm -v 1.4.28 
npm ERR! not ok code 0 
npm WARN package.json [email protected] No description 
npm WARN package.json [email protected] No repository 
field. 
npm WARN package.json [email protected] No README data 
npm WARN deprecated [email protected]: the module is now available as 
'css-select' 
npm WARN deprecated [email protected]: the module is now available as 
'css-select' 
npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: 
{"node":"0.10.40","npm":"1.4.28"}) 
npm WARN deprecated [email protected]: the module is now available as 'css-what' 
npm ERR! Error: version not found: [email protected] 
npm ERR!  at 
/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/cache/add-named.js:125:12 
npm ERR!  at saved 
(/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:167:7) 
npm ERR!  at Object.oncomplete (fs.js:108:15) 
npm ERR! If you need help, you may report this *entire* log, 
npm ERR! including the npm and node versions, at: 
npm ERR!  <http://github.com/npm/npm/issues> 
npm ERR! System Linux 3.13.0-79-generic 
npm ERR! command 
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node" 
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm" 
"install" 
npm ERR! cwd 
/tmp/build_99da0b7813d9d5f66b76750d44ec8399/#####-af203ae940e85f2aa3e34bfa11a1028cc9cc7c8c/packages/npm-container/.npm/package-new-13b38xe 
npm ERR! node -v v0.10.40 
npm ERR! npm -v 1.4.28 
npm ERR! not ok code 0 
!  Push rejected, failed to compile Node.js app 
``` 

我想知道這是否可能是上週所有這些npm模塊被取消的結果。任何方向將不勝感激。

謝謝!

+0

如果你做了一個谷歌搜索'錯誤:無法安裝npm包npm-shrinkwrap:命令失敗:npm'它提出了很多東西。例如這個答案:http://stackoverflow.com/questions/31104909/meteor-fails-cant-install-npm-packages-from-npm-shrinkwrap – mwarren

回答

1

buildpack首先安裝Meteor 1.3,然後根據您的應用程序的需求進行檢查,然後將其更改回Meteor 1.2。更新/降級到1.2並不總能正確解決依賴關係Cannot downgrade。這可能是未滿足依賴節點版本要求的原因之一。您需要使用1.3本地解決依賴關係問題,然後使用buildpack進行部署,或者使用安裝1.2的buildpack。