使用来自Intellij的Yeoman(想法12) [英] Using Yeoman from Intellij (Idea 12)

查看:143
本文介绍了使用来自Intellij的Yeoman(想法12)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用OSX 10.8.4,构思12.节点v0.10.17,yo v1.0.3

Using OSX 10.8.4, Idea 12. Node v0.10.17, yo v1.0.3

当我尝试使用Yeoman作为外部工具时

When attempting to use Yeoman as an external tool in I get

/usr/local/bin/yo angular
env: node: No such file or directory

当我从bash运行相同的命令时,它可以正常工作。
我的Intellij配置中缺少什么?

When I run the same command from bash it works correctly. What am I missing in my Intellij configuration?

以下是我设置的方法......

Here's how I have it setup ...

Program: /usr/local/bin/yo
Parameters: angular


推荐答案

我刚刚遇到了另一个项目。我通过在vim中打开执行的.js文件(/ usr / local / lib / node_modules / [ project_name ] / bin / [ execution.js ])来修复它以下命令

I just came across this for a different project. I fixed it by opening the executing .js file (/usr/local/lib/node_modules/[project_name]/bin/[executing.js]) in vim and using the following command

:set ff = unix

:set ff=unix

这篇关于使用来自Intellij的Yeoman(想法12)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆