Build yeoman project from git checkout

前端 未结 2 1544
清酒与你
清酒与你 2021-02-09 22:54

Am facing issue in building the yeoman project checkout from git. Am trying to take git checkout of yeoman project and run grunt serve. Following is the scenari

2条回答
  •  死守一世寂寞
    2021-02-09 23:38

    Execute a simple npm install inside the App-Directory.

    The Problem is: The Yeoman-Projcet has lots of npm-dependencies, not only grunt itself, but also all of grunts tasks and generators. But of course you wouldnt want all those packages inside your repository. Thats were the "package.json" File comes in: It Lists alls Packages the Project depents on. npm install reads the package.json and installs all needed packages by itself.

    To run the app properly, you will also need to execute bower install. Bower is for the Frontend-Packages what npm is for node. "bower install" looks for the dependent packages in the "bower.json"-File and installs them.

提交回复
热议问题