简体   繁体   English

在Firebase托管上运行npm install和bower install

[英]Running npm install and bower install on firebase hosting

I am using firebase hosting service and found that the command npm install and bower install has not been run. 我正在使用Firebase托管服务,发现命令npm install和bower install尚未运行。 As a result, some of my components are missing. 结果,我的某些组件丢失了。

Any way I can do this? 有什么办法可以做到吗? Thanks! 谢谢!

Firebase Hosting is a static hosting service only. Firebase托管仅是静态托管服务。 You will need to make sure that the directory you specify in the firebase.json file contains all the static files that you want served - probably by having a build step in your deploy process that does the bower install into a build directory before running the firebase deploy command 您将需要确保在firebase.json文件中指定的目录包含您要提供的所有静态文件-可能是通过在部署过程中执行一个构建步骤,使凉亭在运行firebase deploy之前安装到构建目录中firebase deploy命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM