美文网首页
恒生light 在Mac OSX 安装失败解决方案

恒生light 在Mac OSX 安装失败解决方案

作者: Lizzybaby | 来源:发表于2017-01-12 16:16 被阅读99次

1.根据官网安装:npm install lighting -gd —registry=https://registry.npm.taobao.org

2.安装完后测试显示失败:env:node\r:No such file or directory

3.google搜索答案

见两个类似问题的链接:1、http://stackoverflow.com/questions/20483833/yeoman-returns-env-node-r-no-such-file-or-directory

2、https://github.com/nwjs/nw-builder/issues/75

/usr/local/lib/node_modules/[project_name]/bin/[executing.js] in vim and using the following command  :set ff=unix

在/usr/local/lib/node_modules/lighting/bin/下使用sudo vim light打开编辑,并在命令行的状态输入如下:“:set ff=unix”。

上面的就是解决方案。一定要切记要在命令行的状态下输入":set ff=unix"

相关文章

网友评论

      本文标题:恒生light 在Mac OSX 安装失败解决方案

      本文链接:https://www.haomeiwen.com/subject/rzodbttx.html