Tag: yeoman

无法部署Yeoman制作的Angular应用程序

我使用Yeoman创build了一个应用程序。 当“yeoman服务器”正在运行时,它在我的本地工作正常。 但是当我创build一个dist,运行“yeoman build”,它不起作用。 这里是链接到github上的代码: https : //github.com/srijanaravali/yaspa 节点正在我的机器上运行,angular种子中的演示项目同时正常工作。

咕噜usemin不更新手表上的HTML

我试图修改使用yeoman webapp-generator所做的一个咕噜安装。 构build工作正常,但是当我观看时,包含在usemin注释中的_laytout.html中的css链接不会更新到.tmp / styles /中编译的src。 这里的主要问题可能是我用MAMP设置了它,并没有使用grunt server命令。 随意得到回购在这里: https : //github.com/spoeken/generator-craft 所有的项目文件都在应用程序/ 咕噜文件看起来像这样: // Generated on 2014-04-10 using generator-webapp 0.4.8 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) […]

安装Yeoman时出错(npm install -g哟)

当我在Windows命令行上运行npm install -g yo时,出现下面的错误。 有什么想法,我需要做一个干净的Yeoman安装? C:\Users\zmacomber\AppData\Roaming\npm\bower -> C:\Users\zmacomber\AppData\Roaming\npm\node_modules\bower\bin\bower npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer generator-angular@0.8.0 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-angular-phonegap-seed@0.6.0 wants yo@>=1.0.0-rc.1 npm ERR! peerinvalid Peer generator-jhipster@0.18.1 wants yo@>=1.2.0 npm ERR! peerinvalid Peer generator-karma@0.7.0 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-meanjs@0.1.5 wants […]

无法在yeomanangular度生成的webapp中生成“dist”文件夹

我无法生成使用yeomanangular生成器生成和生成的Web应用程序中的dist文件夹。 我正在粘贴冗长的构build。 请检查这是否有帮助。 pdc1-f3t18r1:ShippingSolution administrator$ grunt –verbose build Initializing Command-line options: –verbose Reading "Gruntfile.js" Gruntfile…OK Registering Gruntfile tasks. Registering "grunt-autoprefixer" local Npm module tasks. Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json…OK Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json…OK Loading "autoprefixer.js" tasks…OK + autoprefixer Registering "grunt-concurrent" local Npm module tasks. Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json…OK Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json…OK Loading "concurrent.js" tasks…OK + concurrent Registering "grunt-contrib-clean" local Npm module tasks. Reading […]

反应回stream – 发电机使用Yeoman

我正在尝试使用yeoman生成器生成反应回stream项目,但是我收到以下错误。 我为此使用yeoman发生器,并通过npm安装了发生器 – 反应回stream。 pdc1-4s6zyr1:expProj administrator$ yo ? 'Allo administrator! What would you like to do? (Use arrow keys) Run a generator ❯ Angular Webapp React Reflux Karma Yeogurt Mocha (Move up and down to reveal more choices)/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:86 ? 'Allo administrator! What would you like to do? React Reflux Make sure you are in the […]

使用命令创build项目文件夹时获取错误yo cg-angular

当使用命令创build项目文件夹yo cg-angular获取下面显示的错误, npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE npm ERR! phantomjs@1.9.16 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs@1.9.16 install script 'node install.js'. npm ERR! This is […]

为什么我无法成功运行哟angular?

我正在运行一个windows 8.1 64-bit机器。 Node和npm被安装(最新版本0.12.x和2.7.x ) 正确安装了YO BOWER GRUNT-CLI GULP GENERATOR-ANGULAR 。 现在,当我运行“哟angular”,项目文件正在生成, bower install和npm bower install正在运行。 到现在为止很好。 bower install顺利。 但npm install卡在中间,并给出不同的错误(样品 – ERR registry parsing json sometimes different ),最后冻结执行phantomjs.exe永远。 如果我退出cmd prompt并在该文件夹中运行grunt,它说grunt not installed 。 每次我运行这个都发生这种情况。 尝试几乎所有的searchbuild议。 还有一件事是,我不能删除由angular度创build的文件夹。 请帮助我完全运行它

安装node和npm的问题

我必须安装节点和NPM。 在安装之前,我做了一些search最好的方法来安装这些东西。 我发现的是: 安装nvm 使用nvm安装node 设置nvm alias default以便node在默认情况下可用。 安装node您也将获得npm 。 将全局模块目录更改为HOME某个path,以便在使用npm安装全局作用域包时,不必使用sudo。 再次使用npm作为全局模块来安装npm 。 将新的全局模块目录的bin添加到我们的$PATH环境variables中 但是做完这个后npm不工作。 它给出以下错误: $ npm install -g yo > spawn-sync@1.0.13 postinstall /Users/aapa/.node_modules_global/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync > node postinstall /Users/aapa/.node_modules_global/bin/yo -> /Users/aapa/.node_modules_global/lib/node_modules/yo/lib/cli.js > yo@1.4.7 postinstall /Users/aapa/.node_modules_global/lib/node_modules/yo > yodoctor sh: yodoctor: command not found npm ERR! Darwin 14.3.0 npm ERR! argv "node" "/Users/aapa/.node_modules_global/bin/npm" "install" "-g" "yo" npm […]

Node.js:如何增加readline / inquirer提示高度

我使用inquirer.js创build一个yeoman-generator ,当涉及到一个很长的列表作为提示它的高度太短,以显示所有项目。 我怎样才能增加它? 我知道inquirer.js使用node.js的readline的扩展版本,我不知道是否限制在这个模块。 相关图片:

意味着堆栈哟发电机创build一个新的应用程序时出错

我正在使用mac OSx yosemit,我已经安装了bitnami平均堆栈包。 当我想要使用生成器创build一个新的应用程序,它会给出关于V8debugging器的错误。 这里是步骤; 1. sudo npm install -g yo 2. npm install -g generator-meanjs 3. mkdir test & cd test/ 4. yo meanjs 这问我关于应用程序的一些问题,然后开始安装所需的软件包。 它以下面的错误结束 > v8-profiler@5.2.12 install /Users/tahir/Developer/mean_stack/yo_app/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler > node-pre-gyp install –fallback-to-build [v8-profiler] Success: "/Users/tahir/Developer/mean_stack/yo_app/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler/build/profiler/v5.2.12/node-v14-darwin-x64/profiler.node" is installed via remote npm ERR! Darwin 14.5.0 npm ERR! argv "/Applications/meanstack-3.0.4-2/nodejs/bin/.node.bin" "/Applications/meanstack-3.0.4-2/nodejs/bin/npm" "install" npm ERR! node […]