zhangw 发表于 2016-1-30 00:15:50

phoneGap安装出了问题,寻求帮助

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targe
ts(392,5): error MSB3191: 无法创建目录“Release\obj\bufferutil\bufferutil.tlog\
”。指定的路径
或文件名太长,或者两者都太长。完全限定文件名必须少于 260 个字符,并且目录名必须
少于 248 个字符。 [C:\Users\zhangwei\AppDat
a\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\
socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modu
les\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack   at ChildProcess.onExit (D:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack   at emitTwo (events.js:87:13)
gyp ERR! stack   at ChildProcess.emit (events.js:172:7)
gyp ERR! stack   at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\zhangwei\AppData\Roaming\npm\node_modules\phonegap\node_mo
dules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node
_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.2.4
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
npm WARN optional dep failed, continuing bufferutil@1.2.1
C:\Users\zhangwei\AppData\Roaming\npm\phonegap -> C:\Users\zhangwei\AppData\Roam
ing\npm\node_modules\phonegap\bin\phonegap.js
phonegap@5.4.1 C:\Users\zhangwei\AppData\Roaming\npm\node_modules\phonegap
├── pluralize@0.0.4
├── colors@0.6.0-1
├── semver@1.1.0
├── minimist@0.1.0
├── qrcode-terminal@0.9.4
├── shelljs@0.1.4
├── prompt@0.2.11 (revalidator@0.1.8, pkginfo@0.3.1, read@1.0.7, winston@0.6.
2, utile@0.2.1)
├── phonegap-build@0.9.2 (colors@0.6.2, qrcode-terminal@0.8.0, optimist@0.3.7
, shelljs@0.0.9, phonegap-build-api@0.3.3)
├── cordova@5.4.1 (underscore@1.7.0, q@1.0.1, ansi@0.3.1, nopt@3.0.1, update-
notifier@0.5.0, cordova-lib@5.4.1)
└── connect-phonegap@0.19.0 (home-dir@0.1.2, connect-inject@0.3.2, ip@0.3.1,
adm-zip@0.4.7, walkdir@0.0.8, request-progress@0.3.1, http-proxy@1.8.1, shelljs@
0.2.6, useragent@2.0.8, node-static@0.7.0, request@2.33.0, gaze@0.4.3, tar@0.1.1
9, localtunnel@1.3.0, archiver@0.14.3, connect@2.12.0, socket.io@1.4.0)
----------------------------------------------------------------------------------------------------------------------------------------------
windows 8 的系统
python 2.7
node.js 4.2.4
vs 2012
不知道哪里错了

zhangw 发表于 2016-1-30 00:16:30

文件名太长是什么意思?

zhangw 发表于 2016-1-30 07:54:03

没人么?

zhangw 发表于 2016-1-30 09:33:43

本帖最后由 zhangw 于 2016-1-30 09:39 编辑

F:\my-app>npm install -g phonegap
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0

> utf-8-validate@1.2.1 install C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild

\
C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules
\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )else (noderebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4754,39): error MSB4023: 无法计算项元数据“%(FullPath)”。无法将项元数据“%(FullPath)”应用于路径“Release\obj\validation\validation.node”。C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\c
onnect-phonegap\node_module
s\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate\build\Release\obj\validation\validation.node [C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket
.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack   at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack   at emitTwo (events.js:87:13)
gyp ERR! stack   at ChildProcess.emit (events.js:172:7)
gyp ERR! stack   at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v4.2.4
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> bufferutil@1.2.1 install C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm
\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )else (noderebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4754,39): error MSB4023: 无法计算项元数据“%(FullPath)”。无法将项元数据“%(FullPath)”应用于路径“Release\obj\bufferutil\bufferutil.node”。C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\c
onnect-phonegap\node_module
s\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil\build\Release\obj\bufferutil\bufferutil.node [C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-
client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack   at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack   at emitTwo (events.js:87:13)
gyp ERR! stack   at ChildProcess.emit (events.js:172:7)
gyp ERR! stack   at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.2.4
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
npm WARN optional dep failed, continuing bufferutil@1.2.1
C:\Users\Administrator\AppData\Roaming\npm\phonegap -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js
phonegap@5.4.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\phonegap
├── pluralize@0.0.4
├── colors@0.6.0-1
├── semver@1.1.0
├── minimist@0.1.0
├── qrcode-terminal@0.9.4
├── shelljs@0.1.4
├── phonegap-build@0.9.2 (colors@0.6.2, qrcode-terminal@0.8.0, optimist@0.3.7, shelljs@0.0.9, phonegap-build-api@0.3.3)
├── prompt@0.2.11 (revalidator@0.1.8, pkginfo@0.3.1, read@1.0.7, winston@0.6.2, utile@0.2.1)
├── cordova@5.4.1 (underscore@1.7.0, q@1.0.1, ansi@0.3.1, nopt@3.0.1, update-notifier@0.5.0, cordova-lib@5.4.1)
└── connect-phonegap@0.19.0 (home-dir@0.1.2, connect-inject@0.3.2, ip@0.3.1, adm-zip@0.4.7, request-progress@0.3.1, walkdir@0.0.8, http-proxy@1.8.1, shelljs@0.2.6, useragent@2.0.8, request@2.33.0, node-static@0.7.0, gaze@0.4.3, tar@0.1.19, localtunnel@1.3.0, archiver@0.14.3, connect@2.12.0, socke
t.io@1.4.0)
-----------------------------------------------------------
另一台计算机安装也出先错误
VS2013
python 2.7
node.js 4.2.4
windows 7 的环境

zhangw 发表于 2016-1-30 09:38:31

C:\Users\Administrator\Desktop\360截图20160130093631271.jpg

admin 发表于 2016-1-30 10:35:04

使用 npm install -g cordova

还有就是你网络问题 看看下面的帖子解决方案

http://bbs.phonegap100.com/thread-2622-1-1.html

zhangw 发表于 2016-2-1 09:26:30

admin 发表于 2016-1-30 10:35
使用 npm install -g cordova

还有就是你网络问题 看看下面的帖子解决方案


我先试试,先谢谢
页: [1]
查看完整版本: phoneGap安装出了问题,寻求帮助