Javascript 使用G:Google Drive for desktop for Node JS项目(npm安装错误)

Javascript 使用G:Google Drive for desktop for Node JS项目(npm安装错误),javascript,node.js,command-line,npm-install,google-drive-file-stream,Javascript,Node.js,Command Line,Npm Install,Google Drive File Stream,谷歌桌面硬盘: 首先,我使用的是“Google Drive for desktop”(正式名称为Google Drive Filestream),它给了我一个G:在这里,我可以从我的计算机上访问所有Google Drive文件和文件夹,而无需连接互联网: 基本上,我们所有计算机上的桌面都设置为相同的G:drive,这样我们就可以跳上五台计算机中的任何一台,并在离开任何计算机的位置开始工作,所有桌面文件和文件夹都会同步更改 节点JS: 在Hyper命令提示符下,在G:,我在项目文件夹中创建了ind

谷歌桌面硬盘: 首先,我使用的是“Google Drive for desktop”(正式名称为Google Drive Filestream),它给了我一个G:在这里,我可以从我的计算机上访问所有Google Drive文件和文件夹,而无需连接互联网:

基本上,我们所有计算机上的桌面都设置为相同的G:drive,这样我们就可以跳上五台计算机中的任何一台,并在离开任何计算机的位置开始工作,所有桌面文件和文件夹都会同步更改

节点JS: 在Hyper命令提示符下,在G:,我在项目文件夹中创建了index.js文件,然后用
npm init
初始化了npm。这在项目文件夹中创建了以下
package.json
文件:

{
  "name": "nodejs",
  "version": "1.0.0",
  "description": "intro to node",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "me",
  "license": "ISC"
}
但是,当我尝试使用npm安装时,例如:
npm install superheros
from,我得到以下错误:

npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ERR! path G:\My Drive\NodeJS\node_modules\.staging
npm ERR! errno -4075
npm ERR! EEXIST: file already exists, mkdir 'G:\My Drive\NodeJS\node_modules\.staging'
npm ERR! File exists: G:\My Drive\NodeJS\node_modules\.staging
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.  
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\<my_user_name>\AppData\Roaming\npm-cache\_logs\2021-05-17T01_14_42_782Z-debug.log
npm错误!代码EEXIST
npm错误!系统调用mkdir
npm错误!路径G:\My Drive\NodeJS\node\u modules\暂存
npm错误!errno-4075
npm错误!EEXIST:文件已存在,mkdir'G:\My Drive\NodeJS\node\u modules\.staging'
npm错误!文件存在:G:\My Drive\NodeJS\node\u modules\.staging
npm错误!请删除现有文件并重试,或运行npm
npm错误!使用--force轻率地覆盖文件。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\\AppData\Roaming\npm cache\\u logs\2021-05-17T01\u 14\u 42\u 782Z-debug.log
这里有一个类似的帖子:

我已尝试删除路径文件名
我的驱动器中的空格
,认为这可能会导致4075错误,但未成功

我知道这不是推荐的做法,因为大多数人都会在这种情况下使用GitHub,但这有可能吗

谢谢大家!