https://cn.vuejs.org/guide/quick-start
命令:npm create vue@latest
D:\FrontEndLearning\Front01>npm create vue@latest
npm ERR! code EPERM
npm ERR! syscall open
npm ERR! path E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache_cacache\tmp\5c3dca12
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, open 'E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache_cacache\tmp\5c3dca12'
npm ERR! [Error: EPERM: operation not permitted, open 'E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache_cacache\tmp\5c3dca12'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache\_cacache\tmp\5c3dca12'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
D:\FrontEndLearning\Front01>使用npm创建vue@latest
npm 错误!代码 EPERM
npm 错误!系统调用打开
npm ERR! 路径 E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache_cacache\tmp\5c3dca12
npm 错误!errno -4048
npm ERR! 错误:EPERM:操作不被允许,打开"E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache_cacache\tmp\5c3dca12"
npm ERR! [错误: EPERM: 操作不被允许,打开 'E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache_cacache\tmp\5c3dca12'] {
npm ERR! errno: -4048,,
npm ERR! 代码: '权限不足',,
npm ERR! 系统调用:'open',
npm ERR! 路径:'E:\ruanjian\NodeJs\node-v17.8.0-win-x64\node_cache\_cacache\tmp\5c3dca12'
npm 错误! }
npm 错误!
npm ERR! 您的操作系统拒绝了该操作。
npm ERR! 文件可能已被占用(被文本编辑器或杀毒软件占用),
npm ERR! 或者您没有权限访问它。
npm 错误!
npm ERR! 如果您认为这可能是权限问题,请仔细检查
npm ERR! 文件及其所在目录的权限问题,或尝试运行
npm ERR! 请以root/管理员身份再次执行该命令。
npm ERR! 本次运行的完整日志可在以下位置找到:
解决办法 :
通过管理员运行命令行,
通过 cd /d 进入对应文件夹
然后运行命令