S
S
sergey2016-07-29 11:58:26
ubuntu
sergey, 2016-07-29 11:58:26

Yeoman is installed in the root folder, how to change it?

The question is this: I decided to try to try to work with the yeoman scaffolding tool. I do the installation through the terminal: first globally

$ npm install -gyo

next generator:
$ npm install -g generator-gulp-webapp
and at the end I create a new folder in which I deploy the project:
$ cd project mkdir yeoman cd yeoman
$ yo gulp-webapp

but here's the problem: the project is not deployed to the folder created by yeoman, but for some reason to the root folder. I can't figure out what's wrong and why? Before this installation, everything else was always put in the right place.
PS System Ubuntu 14.04

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2016-07-29
@zorro76

The problem has proven to be quite popular, regardless of the operating system. When creating a new project and installing yeoman into it with the yo command, an error occurred, the system did not see .yo-rc.json in the required directory, and by default accepted the .yo-rc.json that was globally installed with yeoman. The solution to the problem is as follows: when creating a project folder and initializing yo in it, you need to create an empty .yo-rc.json file ( {} ) in the folder and after that yeoman will successfully appear in the required folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question