Node.js 呼噜声发球无效,罗盘错误
我的节点开始表现出异常。因此,我将其删除并重新安装。现在,我再也不能咕噜咕噜地发球了Node.js 呼噜声发球无效,罗盘错误,node.js,compass-sass,yeoman,yo,Node.js,Compass Sass,Yeoman,Yo,我的节点开始表现出异常。因此,我将其删除并重新安装。现在,我再也不能咕噜咕噜地发球了 Pers-MacBook-Air:clientMD perstrom$ grunt serve Running "serve" task Running "clean:server" (clean) task >> 0 paths cleaned. Running "wiredep:app" (wiredep) task Running "wiredep:test" (wiredep) tas
Pers-MacBook-Air:clientMD perstrom$ grunt serve
Running "serve" task
Running "clean:server" (clean) task
>> 0 paths cleaned.
Running "wiredep:app" (wiredep) task
Running "wiredep:test" (wiredep) task
Running "wiredep:sass" (wiredep) task
Running "concurrent:server" (concurrent) task
Warning: Running "compass:server" (compass) task
Error: invalid option: --import-path=./bower_components
Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options]
Description:
compile project at the path specified or the current director if not specified.
我用
yo
生成了这个项目。在我重新安装节点之前,它工作正常。下面的代码为我修复了它;尝试通过运行来更新指南针
// From the official documentation at http://compass-style.org/install/
gem install compass
cd <myproject>
compass install compass
//来自http://compass-style.org/install/
安装指南针
光盘
罗盘安装罗盘
如果您想同时避免使用Ruby和Compass,只需稍作修改即可添加libsas,如下所示:
基本上:
1) 安装grunt sass:npm安装--保存开发grunt sass
2) 将“compass”命令替换为链接中的“sass”定义
3) 在watcher命令中将“compass”替换为“sass”
4) 将并发命令中的“compass”替换为“sass”
希望它能从一开始就作为一个选项添加到生成器中。希望有帮助 重新安装节点后,在项目文件夹中说
npm install
和bower install
,然后再试一次。@Rajeshwar这样做了。yo angular没有给出任何错误,但是yeoman
不同,npm
和bower
不同。如果compatibles中有任何版本,您将无法运行它。因此,再次安装节点
后,更新yo、bower和grunt
并重试一次。如果您仍然面临错误,请使用较旧版本的节点
并重试。@Rajeshwar我在以前的另一个项目中尝试运行grunt Service,结果成功了。所以它一定是本地的。在您的新项目中,您可能已经安装了bower组件和grunt
,以及新版本的npm
。所以我认为两个版本之间有一些兼容性。我也遇到了类似的问题,我更改了node的版本,它工作得很好。谢谢!这与约曼的旧角度发生器一起工作!