【问题标题】:install with NPM on Google Drive File stream在 Google Drive File 流上使用 NPM 安装
【发布时间】:2021-01-05 00:14:11
【问题描述】:

我正在开发 Node.js 应用程序。

我将所有文件都保存在 Google Drive File Stream 上,效果很好。

但是当尝试在终端中使用 NPM 安装一些包时,它会出错。

也许 VS Code 上的终端无法在 Google DFS 中创建新目录。

npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\username\AppData\Local\npm-cache\_logs\2021-01-05T00_13_21_425Z-debug.log

我可以在我的本地驱动器文件夹中执行此操作,然后将其再次复制到 DFS,但这有点烦人。

有什么办法可以解决吗?

【问题讨论】:

    标签: node.js npm google-drive-file-stream


    【解决方案1】:
    1. 我正在使用 Google 云端硬盘桌面应用程序。只有我保存了我所有的代码。

    2. 当我安装 python-shell npm 包时。我发现,empty files里面->路径node_modules/python-shell

    3. 所以我复制了我的代码的整个文件夹并将其保存在桌面(我的意思是您可以将文件保存在本地)

    然后我正确安装了python-shell包

    【讨论】:

      猜你喜欢
      • 2021-02-04
      • 2019-07-05
      • 2016-01-21
      • 1970-01-01
      • 2017-06-04
      相关资源
      最近更新 更多