[英]Can't run Meteor app
I'm trying to run the react-sticky-scroll project from GitHub. 我正在尝试从GitHub运行react-sticky-scroll项目。
npm start
. 然后,我习惯了npm start
。 When I go to localhost:3000
I get a page with title Express and "welcome to express" at the top. 当我转到localhost:3000
,将获得一个标题为Express并在顶部带有“ welcome to express”的页面。 Nothing else. 没有其他的。
Question 题
How can I run this app? 如何运行该应用程序?
meteor npm install
for more details you can follow its documentation on following link. 您需要运行meteor npm install
以获得更多详细信息,您可以在以下链接中关注其文档。 https://themeteorchef.com/base/getting-started https://themeteorchef.com/base/getting-started
When you clone any starter/base project you need to install npm for that project too. 克隆任何启动器/基础项目时,您也需要为该项目安装npm。 Go inside directory and run npm install command. 进入目录并运行npm install命令。
meteor npm install
It will take some time and when its complete run your project using following comand. 这将需要一些时间,并且需要使用以下命令才能完全运行您的项目。
meteor npm start
This can be because of some permission issue. 这可能是由于某些权限问题。
Or it may be because of node version. 或可能是因为节点版本。 Please make sure you are using supported platform and node version. 请确保您使用的是受支持的平台和节点版本。
If you are new to react and want to start with react base app you can use create-react-app
to start from scratch. 如果您是新手,并且想要从React基础应用程序开始,则可以使用create-react-app
从头开始。
https://github.com/facebookincubator/create-react-app https://github.com/facebookincubator/create-react-app
Follow the documentation provided on above link. 请遵循以上链接上提供的文档。
You have to use Meteor to run the app. 您必须使用Meteor来运行该应用程序。 From the Meteor documentation linked to in the README.md , you must first run the following command to install the dependencies: 从README.md中链接到的Meteor 文档中,必须首先运行以下命令来安装依赖项:
meteor npm install
Followed by the command to start the Meteor application: 接下来是启动Meteor应用程序的命令:
meteor
If you then visit http://localhost:3000
you will see the Meteor app. 如果您随后访问http://localhost:3000
,则将看到Meteor应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.