0
這個問題讓我絕對瘋了......遵循來自mean.io的所有說明(http://learn.mean.io/)我到了需要在新創建的項目上執行npm install的部分文件夾,然後我得到大量的錯誤消息:MEAN.io - 安裝npm給出了很多錯誤
E:\Users\Ben\Documents\web\MEAN\very Mean>npm install
npm WARN engine [email protected]: wanted: {"node":"0.10.x","npm":"1.4.x"} (current:
{"node":"0.12.1","npm":"2.5.1"})
> [email protected] preinstall E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules
\meanio
> node ./scripts/preinstall
npm WARN engine [email protected]: wanted: {"node":"0.10.x","npm":"2.1.x"} (current: {"node":"0.12.1","npm":"2.5.1"})
> [email protected] postinstall E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\node_modules\mean-health
> node ./postinstall.js
|
> [email protected] preinstall E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\node_modules\mean-cli
> node ./scripts/preinstall
/
> [email protected] postinstall E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio
> cd ./lib/core_modules/server && npm install && cd ../../..npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
-
> [email protected] install E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\lib\core_modules\server\node_modules\connect-mongo\node_modules\mongodb\node_modules\kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\lib\core_modules\server\node_modules\connect-mongo\node_modules\mongodb\node_modules\kerberos>node
"E:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\lib\core_modules\server\node_modules\connect-mongo\node_modules\mongodb\node_modules\kerberos\build\binding.sln]
> [email protected] install E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\lib\core_modules\server\node_modules\connect-mongo\node_modules\mongodb\node_modules\bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)
E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\lib\core_modules\server\node_modules\connect-mongo\node_modules\mongodb\node_modules\bson>node "E:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node
-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [E:\Users\Ben\Documents\web\MEAN\very Mean\node_modules\meanio\lib\core_modules\server\node_modules\connect-mongo\node_modules\mongodb\node_modules\bson\build\binding.sln]
[email protected] node_modules\method-override
└── [email protected]
[email protected] node_modules\gridfs-stream
[email protected] node_modules\cookie-parser
├── [email protected]
└── [email protected]
[email protected] node_modules\express-validator
└── [email protected]
[email protected] node_modules\passport
├── [email protected]
└── [email protected]
[email protected] node_modules\express-session
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules\express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules\connect-mongo
└── [email protected] ([email protected], [email protected], [email protected])
> [email protected] postinstall E:\Users\Ben\Documents\web\MEAN\very Mean
> node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall
Installing Bower dependencies
Auto installing package dependencies
Dependencies installed for package articles
Dependencies installed for package system
Dependencies installed for package users
Dependencies installed for package theme
Package not found.
Package not found.
Package not found.
[email protected] node_modules\meanio
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected]7
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
我已經安裝了.NET框架和visual studio。我已經安裝了mongodb,node,git,bower,mean-cli和gulp。
任何想法? 使用Windows 7.預先感謝!
您是否在默認位置('C:\ Program files',如果我沒有錯的話)安裝了.NET框架? – 2015-03-31 05:39:39
是的,它默認安裝在C:\ Program Files(x86)中。只需卸載並重新安裝.NET並獲得相同的錯誤。 – 2015-03-31 05:53:08
您是否正在運行VS命令promt(以管理員身份)的命令? – 2015-03-31 06:03:59