0

我想在我的 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

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

4

1 回答 1

0

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

   sudo apt-get remove <<application_name>>

这里application_name替换为您的安装应用程序名称。

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

希望这会帮助你。

于 2016-02-19T06:04:43.727 回答