如何 运行 我 git 克隆的程序?
How do I run a program that I git cloned?
我是 git 的新手。我刚刚 git 克隆了 this library and am trying to run the code in this folder。我知道它使用 Javascript 所以我尝试使用 npm start
但它给了我一个 npm ERR! missing script: start
错误。我如何运行呢?
您应该在他们的文档中使用 Getting Started guide。您应该通过 npm 安装软件包,而不是使用 git 克隆它。如果您打算修改他们的代码,您只会克隆 repo。
2.1 How to Install
This charts library is intended to be installed with npm and the built into your project with a tool like Webpack. It expects React to be present, as well as our TimeSeries abstraction library, pond.js. More on this below.
To install:
npm install react-timeseries-charts pondjs --save
我是 git 的新手。我刚刚 git 克隆了 this library and am trying to run the code in this folder。我知道它使用 Javascript 所以我尝试使用 npm start
但它给了我一个 npm ERR! missing script: start
错误。我如何运行呢?
您应该在他们的文档中使用 Getting Started guide。您应该通过 npm 安装软件包,而不是使用 git 克隆它。如果您打算修改他们的代码,您只会克隆 repo。
2.1 How to Install This charts library is intended to be installed with npm and the built into your project with a tool like Webpack. It expects React to be present, as well as our TimeSeries abstraction library, pond.js. More on this below.
To install:
npm install react-timeseries-charts pondjs --save