Error: Failed to fetch plugin E:_My_File______workMyCodemyCodecordova-workspaceplugman-testMyMath via registry. Probably this is either a connection problem, or plugin spec is incorrect.

$ cordova plugin add E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman-test\MyMath --save
Error: Failed to fetch plugin E:_My_File______workMyCodemyCodecordova-workspaceplugman-testMyMath via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963238 Error output:
npm ERR! addLocal Could not install E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman-test\ABCD\_My_File______workMyCodemyCodecordova-wo
kspaceplugman-testMyMath
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\_____Soft______\\node\\node.exe" "c:\\_____Soft______\\node\\node_modules\\npm\\bin\\npm-cli.js" "install" "E:_My_File______workMy
odemyCodecordova-workspaceplugman-testMyMath" "--production" "--save"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! path E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman-test\ABCD\_My_File______workMyCodemyCodecordova-workspaceplugman-testMyM
th
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman-test\ABCD\_My_File______workM
CodemyCodecordova-workspaceplugman-testMyMath'
npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman-test\ABCD\_My_File______workM
CodemyCodecordova-workspaceplugman-testMyMath'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:

 

======================

在windows 路径应该使用"/" 而不是"\"  所以插件应该 cordova plugin add E:/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/MyMath

 

posted @ 2017-11-02 19:00  ldp.im  阅读(611)  评论(0编辑  收藏  举报