【问题标题】:Errors installing cordova on windows 10在 Windows 10 上安装科尔多瓦时出错
【发布时间】:2016-08-30 20:01:16
【问题描述】:

我想在我的开发机器上安装最新的稳定版本的cordova。

但安装失败并警告 minimatch 需要更新。所以我更新到 npm v3,它安装了 3.10.6。现在我得到了一个不同的错误,但仍然是关于 minimatch 的警告。谁能告诉我我做错了什么? npm v3 是最新的稳定版本还是我设法安装了 beta 版本?

我在 npm 和 cordova 上都尝试了 clean 命令,并且我正在以管理员身份运行控制台

$ npm install -g cordova
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\Acuity\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Acuity\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v4.5.0
npm ERR! npm  v3.10.6
npm ERR! path C:\Users\Acuity\AppData\Roaming\npm\node_modules\.staging\abbrev-a6a00b47
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\.staging\abbrev-a6a00b47' -> 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\.staging\abbrev-a6a00b47' -> 'C:\Users\Acuity\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
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!     C:\Users\Acuity\npm-debug.log
npm ERR! code 1

【问题讨论】:

    标签: cordova npm installation


    【解决方案1】:

    我卸载了所有节点模块和nodejs,并从一个空白环境开始,现在它可以工作了

    【讨论】:

      猜你喜欢
      • 2023-03-08
      • 2015-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多