`vue create` 遇到的这些错误信息正常吗?
Are these error messages encountered during `vue create` normal?
我运行下面的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\_logs20-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.
我会回答我自己的问题。
错误肯定不行
错误是由长路径名引起的。 运行 路径名较短的文件夹中的 vue-cli 命令将导致错误消失。
我运行下面的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\_logs20-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.
我会回答我自己的问题。
错误肯定不行
错误是由长路径名引起的。 运行 路径名较短的文件夹中的 vue-cli 命令将导致错误消失。