yeoman-generator

    8熱度

    2回答

    以下是我不斷收到的錯誤。它似乎表明與yodoctor「安裝後」的問題。不幸的是,yodoctor是由自我管理團隊提供的建議來幫助解決這個問題。我安裝了其他node_modules(bower,grunt,typescript)。 sh: yodoctor: command not found npm ERR! Darwin 15.0.0 npm ERR! argv "/usr/local/Ce

    2熱度

    1回答

    我建立一個自定義的自耕農發電機,所以當它的時間來創建文件他們正在創建一個目錄上面我的當前位置,或在..,因此,例如,如果我運行: yo koala 從/home/diegoaguilar/koala的文件將在/home/diegoaguilar創建。我該如何告訴發生器應該複製文件的路徑?我真的認爲這將是process.cwd()或簡單地yeoman發電機從哪裏跑。 這是我得到的文件生成的代碼:

    2熱度

    1回答

    我試圖啓動腳手架與自耕農自定義生成的應用程序時,一個混帳回購協議的時候,這就是我在install步了: install: function() { this.installDependencies(); this.spawnCommand('npm', ['i', '--save' , 'express', 'mongodb', 'mongoose', 'lodash', 'b

    2熱度

    1回答

    我已經使用Yeoman創建了一個新的MeanJS項目。它安裝得很好。當我想使用yo meanjs:angular-module mymodule添加一個新模塊時,它會嘗試創建一個新項目("Which mean.js version would you like to generate"),而不是隻添加新模塊。 我應該在哪裏尋找錯誤?我使用node v0.12.7和npm v2.11.3。

    2熱度

    1回答

    我試圖做一個乾淨的安裝自耕農,但呦命令仍然存在,我想下面的命令後,將其刪除:當我做了Yo或Yo doctor sudo npm remove -g yeoman npm remove -g yeoman sudo npm remove -g yo npm remove -g yo brew uninstall yeoman brew uninstall yo sudo brew uni

    0熱度

    1回答

    我使用的平均發生器 產生一個平均值堆模板yo.rc.json文件喲意味着 我想創建子模塊,但它總是一次創建整個應用程序,因爲沒有.yo .rc.json文件在文件夾中。 喲醫生說一切正常 應該在哪裏這個.yo.rc.json是,是有辦法基於我在我的應用程序中的文件嗎?

    2熱度

    1回答

    我想將zurb-foundation 6包含到yeoman生成的項目中運行grunt。使用bower install foundation-sites --save增加了以下文件: 在應用程序/ index.html的<script src="bower_components/what-input/what-input.js"></script>和應用程序/風格 /main.scss @impor

    3熱度

    1回答

    我使用yeoman爲我的應用程序創建腳手架。 我想複製所有的目錄遞歸這就是爲什麼我使用this.directory方法 this.directory('views/static/views', '.views/static/views'); 現在,每當我遇到它顯示出一個錯誤<%= title %> in file index.html during copying is not defined

    1熱度

    2回答

    我做一個副發電機,我想傳遞給主生成器來定義這種副發電機變量: 有些東西像: writing: function() { console.log(this.appversion); var email = this.email; // Variable defined on the main controller. this.fs.copy( this.tem

    0熱度

    1回答

    我一直在使用Yeoman構建一個Angular + Node註釋應用程序。 我無法解決錯誤「TypeError:無法讀取未定義的屬性'_id'」。 這是我/api/comment/index.js文件 'use strict'; var express = require('express'); var controller = require('./comment.contro