yeoman-generator

Yeoman angular generator install runs but generator doesn't appear in generator list

烂漫一生 提交于 2019-12-31 19:51:18
问题 I've tried to install the yeoman angular generator with the following: npm install -g generator-angular It all looks like it's installed properly... ... npm http GET https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/string_decoder npm http GET https://registry.npmjs.org/event-emitter npm http GET https://registry.npmjs.org/next-tick npm http 304 https://registry.npmjs.org/event-emitter npm http 304 https://registry.npmjs.org/next-tick generator-angular@0.7.1

Yeoman composeWith only calling constructor in subgenerator

北城以北 提交于 2019-12-25 14:12:02
问题 I'm trying to use composeWith , to call a subgenerator within the same generator package. Yet for some reason, only the constructor of the called generator is invoked. My generator-package generator-test looks like this: package.json generators -- app -- index.js -- base -- index.js My main generator in app looks like this: 'use strict'; var yeoman = require('yeoman-generator'); var yosay = require('yosay'); module.exports = yeoman.generators.Base.extend({ constructor: function () { console

Yeoman composeWith only calling constructor in subgenerator

若如初见. 提交于 2019-12-25 14:11:50
问题 I'm trying to use composeWith , to call a subgenerator within the same generator package. Yet for some reason, only the constructor of the called generator is invoked. My generator-package generator-test looks like this: package.json generators -- app -- index.js -- base -- index.js My main generator in app looks like this: 'use strict'; var yeoman = require('yeoman-generator'); var yosay = require('yosay'); module.exports = yeoman.generators.Base.extend({ constructor: function () { console

Error: Cannot find module 'ansi-styles' in AngularJS with Yeoman generator

你离开我真会死。 提交于 2019-12-24 05:49:17
问题 My code was working previously before, but seems to have stopped working. I tried yo angular:route api but this error was returned: Error: Cannot find module 'ansi-styles' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/usr/local/lib/node_modules/generator-angular/node_modules/chalk/index.js:2:12) at Module._compile (module.js:456:26) at Object.Module.

Yeoman - Gulp spawn cmd enoent

落爺英雄遲暮 提交于 2019-12-24 03:26:12
问题 With the help gulp yeoman-webapp 'im wolf. But it also serves on the command line, I get the following error gulp. Can you help me? Thank you in advance. I work in Windows 10 and 64 bit computing. events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn cmd ENOENT at exports._errnoException (util.js:746:11) at Process.ChildProcess._handle.onexit (child_process.js:1053:32) at child_process.js:1144:20 at process._tickCallback (node.js:355:11) 回答1: Try to put in your system variables in

Installing and injecting ng-flow using yeoman

给你一囗甜甜゛ 提交于 2019-12-24 02:34:06
问题 I am working with the yo meanjs boilerplate from here :yo meanjs. I know I can create my own module using $ yo meanjs:angular-module <module-name> . Is it possible to install and inject into my controller ng-flow using yo from the command line? Something like : $ yo meanjs:ng-flow <module-name> In the documentation it states found here meanjs modules: So unless there are any better suggestions I might try this route. To add third-party modules use the public/config.js file where we added an

Calling a yeoman generator after a generator has finished

雨燕双飞 提交于 2019-12-23 12:39:01
问题 I am looking to call another yeoman generator once the first generator has finished installing, this will be based on an answer I give for one of the prompts. I have tried calling it at the end. end: function () { this.installDependencies({ callback: function () { if( this.generator2 ){ shell.exec('yo generator2'); } }.bind(this) }); }, This runs generator2, but I am unable to answer any prompts. These are 2 separate generators, so I cannot make the second a sub generator. 回答1: Use Yeoman

yodoctor: command not found when installing yo from terminal

一个人想着一个人 提交于 2019-12-23 07:55:24
问题 Below is the error I keep getting. It seems to indicate a "post-install" issue with yodoctor. Sadly yodoctor is the advice given by the yeoman team to help with this issue. I have other node_modules installed (bower, grunt, typescript). sh: yodoctor: command not found npm ERR! Darwin 15.0.0 npm ERR! argv "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/bin/npm" "install" "-g" "yo" npm ERR! node v5.0.0 npm ERR! npm v3.3.9 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm

yeoman error peerinvalid Peer generator-webapp@0.5.0 wants yo@>=1.2.0

荒凉一梦 提交于 2019-12-22 10:22:28
问题 Running npm install -g generator-webapp gives this at the end of the npm-debug.log file: 18875 error peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements! 18875 error peerinvalid Peer generator-mocha@0.1.6 wants yo@>=1.0.0 18875 error peerinvalid Peer generator-webapp@0.5.0 wants yo@>=1.2.0 18876 error System Windows_NT 6.1.7601 18877 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"

Build yeoman project from git checkout

吃可爱长大的小学妹 提交于 2019-12-21 02:42:09
问题 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 scenario followed by error description Scenario description : Person1 created the yeoman angularjs project using yo angular . grunt serve is working fine in Person1 's computer. Person1 pushes the code to git so other team members can work on it. Problem occurs when Person2 takes a checkout of the git ( git clone < URL> ). The grunt serve