PhoneGap中文网

 找回密码
 立即注册
查看: 15639|回复: 6
打印 上一主题 下一主题

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

[复制链接]

2

主题

10

帖子

54

积分

注册会员

Rank: 2

积分
54
跳转到指定楼层
楼主
发表于 2016-1-30 00:15:50 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
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
不知道哪里错了

回复

使用道具 举报

2

主题

10

帖子

54

积分

注册会员

Rank: 2

积分
54
沙发
 楼主| 发表于 2016-1-30 00:16:30 | 只看该作者
文件名太长是什么意思?
回复 支持 反对

使用道具 举报

2

主题

10

帖子

54

积分

注册会员

Rank: 2

积分
54
地板
 楼主| 发表于 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 (node  rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/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 (node  rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/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 的环境

360截图20160130093631271.jpg (176.12 KB, 下载次数: 170)

360截图20160130093631271.jpg
回复 支持 反对

使用道具 举报

2

主题

10

帖子

54

积分

注册会员

Rank: 2

积分
54
5#
 楼主| 发表于 2016-1-30 09:38:31 | 只看该作者
C:\Users\Administrator\Desktop\360截图20160130093631271.jpg
回复 支持 反对

使用道具 举报

493

主题

2035

帖子

6894

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6894
6#
发表于 2016-1-30 10:35:04 | 只看该作者
使用 npm install -g cordova

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

http://bbs.phonegap100.com/thread-2622-1-1.html
回复 支持 反对

使用道具 举报

2

主题

10

帖子

54

积分

注册会员

Rank: 2

积分
54
7#
 楼主| 发表于 2016-2-1 09:26:30 | 只看该作者
admin 发表于 2016-1-30 10:35
使用 npm install -g cordova

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

我先试试,先谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2024-5-20 23:11 , Processed in 0.051570 second(s), 30 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表