ubuntu中的phonegap安装错误

时间:2016-02-18 11:40:09

标签: cordova phonegap-cli

我想在我的Ubuntu15.10操作系统上安装Phonegap,但在执行phonegap安装后,我收到以下错误:

  npm ERR! Linux 4.2.0-19-generic

  npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"    "phonegap"

  npm ERR! node v5.6.0

  npm ERR! npm  v3.6.0

  npm ERR! path /usr/local/lib/node_modules/.staging/balanced-match-45910c53

  npm ERR! code ENOENT

  npm ERR! errno -2

  npm ERR! syscall rename


  npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/balanced-match-45910c53' -> '/usr/local/lib/node_modules/phonegap/node_modules/cordova-lib/node_modules/balanced-match'

  npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/balanced-match-45910c53' -> '/usr/local/lib/node_modules/phonegap/node_modules/cordova-lib/node_modules/balanced-match'

  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:

  npm ERR!     /home/aarzoo/npm-debug.log

 npm ERR! code 1

请帮我解决这个问题,因为我是初学者。

1 个答案:

答案 0 :(得分:0)

首先使用以下命令删除所有以前的安装应用程序,然后按照此link再次尝试使用。

   sudo apt-get remove <<application_name>>

此处 application_name 替换为您的安装应用程序名称。

如果有任何问题请在这里发表评论。

希望这会对你有帮助。