2015-12-27 55 views
1

我想创建角度项目使用yeomen.I安装grunt-cli,凉亭,角生成器,如yeomen site.but咕噜生成不成功抛出以下未满足的依赖性错误。问题在nbuntu中安装业力,茉莉花和phantomjs与NPM

npm WARN EPEERINVALID [email protected] requires a peer of [email protected]^0.13.0 || >= 0.14.0-rc.0 but none was installed. 
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]* but none was installed. 
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]>=0.9 but none was installed. 
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]>=1.9 but none was installed. 

我尝试安装了满足的依赖关系为npm install -g [email protected]^0.13.0和安装成功。 这是终端中的踪迹。

[email protected]:~/workspace/cord-angApp$ npm install -g [email protected]^0.13.0 
npm WARN install Couldn't install optional dependency: Unsupported 
/home/srinivas/.node/bin/karma -> /home/srinivas/.node/lib/node_modules/karma/bin/karma 

> bufferut[email protected] install /home/srinivas/.node/lib/node_modules/karma/node_modules/bufferutil 
> node-gyp rebuild 

make: Entering directory `/home/srinivas/.node/lib/node_modules/karma/node_modules/bufferutil/build' 
    CXX(target) Release/obj.target/bufferutil/src/bufferutil.o 
    SOLINK_MODULE(target) Release/obj.target/bufferutil.node 
    COPY Release/bufferutil.node 
make: Leaving directory `/home/srinivas/.node/lib/node_modules/karma/node_modules/bufferutil/build' 

> [email protected] install /home/srinivas/.node/lib/node_modules/karma/node_modules/utf-8-validate 
> node-gyp rebuild 

make: Entering directory `/home/srinivas/.node/lib/node_modules/karma/node_modules/utf-8-validate/build' 
    CXX(target) Release/obj.target/validation/src/validation.o 
    SOLINK_MODULE(target) Release/obj.target/validation.node 
    COPY Release/validation.node 
make: Leaving directory `/home/srinivas/.node/lib/node_modules/karma/node_modules/utf-8-validate/build' 
/home/srinivas/.node/lib 
`-- [email protected] 

在此之后我尝试了npm install,可以看到相同的错误message.I认为这是与节点模块的配置路径问题?

回答

1

,因为我安装phantomjs,因缘和茉莉全球喜欢它npm install -g [email protected]没有安装locally.So我只是安装了它,而不-g选项npm install karma这解决了问题。