【问题标题】:Error Message is popping in cmd while installing appium through npm in windows 10在 Windows 10 中通过 npm 安装 appium 时,cmd 中弹出错误消息
【发布时间】:2018-12-23 02:38:30
【问题描述】:

我尝试在 Windows 10 CMD 上使用 npm 安装 appium,但收到以下错误消息:

npm WARN tar ENOENT:没有这样的文件或目录,打开 'C:\Users\asus\AppData\Roaming\npm\node_modules.staging\bplist-creator-30ee61c3\test\sample1.bplist' npm WARN tar ENOENT:没有这样的文件或目录,打开 'C:\Users\asus\AppData\Roaming\npm\node_modules.staging\bplist-creator-30ee61c3\test\sample2.bplist' npm WARN tar ENOENT:没有这样的文件或目录,打开 'C:\Users\asus\AppData\Roaming\npm\node_modules.staging\bplist-creator-30ee61c3\test\uid.bplist' npm WARN tar ENOENT:没有这样的文件或目录,打开 'C:\Users\asus\AppData\Roaming\npm\node_modules.staging\bplist-creator-30ee61c3\test\utf16.bplist' npm 错误!超出最大调用堆栈大小

【问题讨论】:

标签: node.js npm appium


【解决方案1】:

看起来你缺少一些包。

  1. 确保您的package.json 列出了您的所有依赖项
  2. 运行 npm install
    如果问题仍然存在
    • 运行npm install
    • 运行npm cache clean
    • 运行npm install -g npm
    • 再擦npm install

【讨论】:

    【解决方案2】:

    您可以通过以下方法解决该问题:

    只需输入 npm install 并按 Enter。 检查问题仍然存在。如果问题未解决,请继续这些方法。 输入 npm cache clean 并按 Enter 输入 sudo npm install -g npm 并按 Enter。 重试 npm install 并按 Enter。

    如果您在公司网络代理后面,您可以在 CMD 上执行以下命令: npm 配置设置 https-proxy http://proxyip:port/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-02-02
      • 1970-01-01
      • 2023-04-05
      • 2017-11-09
      • 1970-01-01
      • 1970-01-01
      • 2017-04-19
      相关资源
      最近更新 更多