【问题标题】:ENOENT Error while trying to install Nativescript 8尝试安装 Nativescript 8 时出现 ENOENT 错误
【发布时间】:2021-06-28 23:30:13
【问题描述】:

我正在尝试构建一个新的 NS8 项目。我的计算机上有另一个 NS6.5 项目,但它位于不同的文件夹中。在其他文件夹中运行 npm install -g nativescript 时,出现以下错误

2323 verbose argv "/Users/.../.nvm/versions/node/v16.4.0/bin/node" "/Users/.../.nvm/versions/node/v16.4.0/bin/npm" "install" "-g" "nativescript"
2324 verbose node v16.4.0
2325 verbose npm  v7.18.1
2326 error code ENOENT
2327 error syscall lstat
2328 error path /Users/.../.npm/_cacache/content-v2/sha1/07/e1/3c3118154c53893d3be7a7e08d990e86d859
2329 error errno -2
2330 error enoent ENOENT: no such file or directory, lstat '/Users/.../.npm/_cacache/content-v2/sha1/07/e1/3c3118154c53893d3be7a7e08d990e86d859'
2331 error enoent This is related to npm not being able to find a file.
2332 verbose exit -2

我不确定为什么会出错。任何帮助,将不胜感激。谢谢

【问题讨论】:

    标签: node.js npm nativescript npm-install nativescript-angular


    【解决方案1】:

    我通过安装节点版本 14.17.1 (v6.14.13) 解决了这个问题

    【讨论】:

      猜你喜欢
      • 2016-09-14
      • 2021-07-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-16
      • 1970-01-01
      • 2014-05-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多