1

我正在尝试在 Google Drive Stream (windows10) 上创建一个 vue 项目,但我不能。

$ cd G:\MyDrive\webdata\sample-app
$ vue init simulatedgreg/electron-vue sample-app

在这个命令之后,我对来自 vue 的每个问题都输入 Enter。然后出现以下错误。

vue-cli · Failed to write the file at: G:\MyDrive\webdata\sample-app\sample-app\.eslintrc.js
EEXIST: file already exists, mkdir 'G:\MyDrive\webdata\sample-app\sample-app\'

我删除了 G:\MyDrive\webdata\sample-app\sample-app\ 文件夹并在管理员运行的 powershell 终端上再次尝试,但结果相同。

我也尝试创建一个反应项目,但发生了类似的错误。

$ create-react-app koseki-seiri-app

Creating a new React app in G:\MyDrive\webdata\sample-app\sample-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

npm ERR! path G:\MyDrive\webdata\sample-app\sample-app\node_modules\.staging\@babel
npm ERR! code EEXIST
npm ERR! errno -4075
npm ERR! syscall mkdir
npm ERR! EEXIST: file already exists, mkdir 'G:\MyDrive\webdata\sample-app\sample-app\node_modules\.staging\@babel'
npm ERR! File exists: G:\MyDrive\webdata\sample-app\sample-app\node_modules\.staging\@babel
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\rieko\AppData\Roaming\npm-cache\_logs\2019-02-26T21_54_16_969Z-debug.log

Aborting installation.
  npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... package.json
Deleting generated file... node_modules
Done.```

我该如何创作?

4

0 回答 0