Using Yeoman from Intellij (Idea 12)

走远了吗. 提交于 2019-12-07 16:27:12

问题


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

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

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

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

回答1:


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



来源:https://stackoverflow.com/questions/18431107/using-yeoman-from-intellij-idea-12

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!