vs-mad-remote 构建失败,错误为 CordovaModuleLoadError 4.1.2
vs-mad-remote build failed with error CordovaModuleLoadError 4.1.2
当我使用 vs-mda-remote 在 mac 上测试 cordova 时,它因错误而失败:
error CordovaModuleLoadError 4.1.2
而当我使用 vs-mda-remote 测试时,错误是:
error CordovaModuleLoadError 4.3.0
vs-mda-remote
这样就可以启动服务器了。
而且我试了一下cordova,可以建成功。以下是完整输出:
New build request submitted:
/build/tasks?command=build&vcordova=4.1.2&cfg=release
{ 'accept-language': 'zh-CN',
host: '192.168.1.244:3000',
connection: 'keep-alive',
'transfer-encoding': 'chunked' }
New build request submitted for cordovaVersion: 4.1.2; buildCommand: build; configuration: release
Build will be executed under: /Users/czcz1024/remote-builds/builds/610
Saving build request payload to : /Users/czcz1024/remote-builds/builds/610
Saved upload to /Users/czcz1024/remote-builds/builds/610/upload_610.tgz
Extracting /Users/czcz1024/remote-builds/builds/610/upload_610.tgz to /Users/czcz1024/remote-builds/builds/610/cordovaApp...
POST /build/tasks?command=build&vcordova=4.1.2&cfg=release 202 2291ms - 495b
GET /build/tasks/610 200 2ms - 495b
Extracted app contents from uploaded build request to /Users/czcz1024/remote-builds/builds/610/cordovaApp. Requesting build.
Taking 610 as current build
Building cordova app BlankCordovaApp1 at appDir /Users/czcz1024/remote-builds/builds/610/cordovaApp
Opened build log file /Users/czcz1024/remote-builds/builds/610/build.log
GET /build/tasks/610 200 1ms - 585b
Done building 610 : error CordovaModuleLoadError [ '4.1.2' ]
Done with currentBuild. Checking for next build in queue.
GET /build/tasks/610 200 1ms - 621b
GET /build/tasks/610/log 200 6ms
然后是输出运行测试
New build request submitted:
/build/tasks?vcordova=4.3.0&cfg=release&command=build&options=--emulator
{ host: 'localhost:3000',
connection: 'close',
'transfer-encoding': 'chunked' }
New build request submitted for cordovaVersion: 4.3.0; buildCommand: build; configuration: release
Build will be executed under: /Users/czcz1024/remote-builds/builds/611
Saving build request payload to : /Users/czcz1024/remote-builds/builds/611
Saved upload to /Users/czcz1024/remote-builds/builds/611/upload_611.tgz
Extracting /Users/czcz1024/remote-builds/builds/611/upload_611.tgz to /Users/czcz1024/remote-builds/builds/611/cordovaApp...
POST /build/tasks?vcordova=4.3.0&cfg=release&command=build&options=--emulator 202 217ms - 505b
Extracted app contents from uploaded build request to /Users/czcz1024/remote-builds/builds/611/cordovaApp. Requesting build.
Taking 611 as current build
Building cordova app HelloCordova at appDir /Users/czcz1024/remote-builds/builds/611/cordovaApp
Opened build log file /Users/czcz1024/remote-builds/builds/611/build.log
Done building 611 : error CordovaModuleLoadError [ '4.3.0' ]
Done with currentBuild. Checking for next build in queue.
GET /build/tasks/611 200 1ms - 627b
怎么了?
这可能是您的 .npm 文件夹的权限问题,新版本的 vs-mda-remote 试图安装 Cordova 包。
您可以尝试 运行 以下 2 个命令:
$ sudo npm cache clear
$ sudo chown -R `whoami` ~/.npm
然后重启你的 vs-mda-remote 服务器?
当我使用 vs-mda-remote 在 mac 上测试 cordova 时,它因错误而失败:
error CordovaModuleLoadError 4.1.2
而当我使用 vs-mda-remote 测试时,错误是:
error CordovaModuleLoadError 4.3.0
vs-mda-remote
这样就可以启动服务器了。
而且我试了一下cordova,可以建成功。以下是完整输出:
New build request submitted:
/build/tasks?command=build&vcordova=4.1.2&cfg=release
{ 'accept-language': 'zh-CN',
host: '192.168.1.244:3000',
connection: 'keep-alive',
'transfer-encoding': 'chunked' }
New build request submitted for cordovaVersion: 4.1.2; buildCommand: build; configuration: release
Build will be executed under: /Users/czcz1024/remote-builds/builds/610
Saving build request payload to : /Users/czcz1024/remote-builds/builds/610
Saved upload to /Users/czcz1024/remote-builds/builds/610/upload_610.tgz
Extracting /Users/czcz1024/remote-builds/builds/610/upload_610.tgz to /Users/czcz1024/remote-builds/builds/610/cordovaApp...
POST /build/tasks?command=build&vcordova=4.1.2&cfg=release 202 2291ms - 495b
GET /build/tasks/610 200 2ms - 495b
Extracted app contents from uploaded build request to /Users/czcz1024/remote-builds/builds/610/cordovaApp. Requesting build.
Taking 610 as current build
Building cordova app BlankCordovaApp1 at appDir /Users/czcz1024/remote-builds/builds/610/cordovaApp
Opened build log file /Users/czcz1024/remote-builds/builds/610/build.log
GET /build/tasks/610 200 1ms - 585b
Done building 610 : error CordovaModuleLoadError [ '4.1.2' ]
Done with currentBuild. Checking for next build in queue.
GET /build/tasks/610 200 1ms - 621b
GET /build/tasks/610/log 200 6ms
然后是输出运行测试
New build request submitted:
/build/tasks?vcordova=4.3.0&cfg=release&command=build&options=--emulator
{ host: 'localhost:3000',
connection: 'close',
'transfer-encoding': 'chunked' }
New build request submitted for cordovaVersion: 4.3.0; buildCommand: build; configuration: release
Build will be executed under: /Users/czcz1024/remote-builds/builds/611
Saving build request payload to : /Users/czcz1024/remote-builds/builds/611
Saved upload to /Users/czcz1024/remote-builds/builds/611/upload_611.tgz
Extracting /Users/czcz1024/remote-builds/builds/611/upload_611.tgz to /Users/czcz1024/remote-builds/builds/611/cordovaApp...
POST /build/tasks?vcordova=4.3.0&cfg=release&command=build&options=--emulator 202 217ms - 505b
Extracted app contents from uploaded build request to /Users/czcz1024/remote-builds/builds/611/cordovaApp. Requesting build.
Taking 611 as current build
Building cordova app HelloCordova at appDir /Users/czcz1024/remote-builds/builds/611/cordovaApp
Opened build log file /Users/czcz1024/remote-builds/builds/611/build.log
Done building 611 : error CordovaModuleLoadError [ '4.3.0' ]
Done with currentBuild. Checking for next build in queue.
GET /build/tasks/611 200 1ms - 627b
怎么了?
这可能是您的 .npm 文件夹的权限问题,新版本的 vs-mda-remote 试图安装 Cordova 包。
您可以尝试 运行 以下 2 个命令:
$ sudo npm cache clear
$ sudo chown -R `whoami` ~/.npm
然后重启你的 vs-mda-remote 服务器?