在`vue create`正常过程中是否遇到这些错误消息?

问题描述 投票:0回答:1

我在下面运行了vue / cli命令;

vue create default_project

我可以看到在node_modules文件夹下创建了许多模块,并创建了package.json文件。看起来很正常。

但是,我遇到以下错误;

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\biggie\Dropbox\biggieas\Programming\Vue\test_app\default_project\node_modules\postcss-selector-parser
npm ERR! dest C:\Users\biggie\Dropbox\biggieas\Programming\Vue\test_app\default_project\node_modules\.postcss-selector-parser.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\biggie\Dropbox\biggieas\Programming\Vue\test_app\default_project\node_modules\postcss-selector-parser' -> 'C:\Users\biggie\Dropbox\biggieas\Programming\Vue\test_app\default_project\node_modules\.postcss-selector-parser.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\biggie\AppData\Roaming\npm-cache\_logs\2020-05-13T07_10_18_241Z-debug.log
 ERROR  command failed: npm install --loglevel error

由于似乎成功下载了节点模块,尽管出现这些错误,开发工作仍可以继续吗?

我正在使用node.js v12.16.3和vue / cli 4.3.1和Windows 10。

node.js vue.js vue-cli
1个回答
0
投票

我将回答我自己的问题。

错误肯定不行。

错误是由长路径名引起的。在路径名较短的文件夹中运行vue-cli命令将导致错误消失。

© www.soinside.com 2019 - 2024. All rights reserved.