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認爲這是與節點模塊的配置路徑問題?