首页 新闻 会员 周边 捐助

安装vue脚手架出现错误?

0
[待解决问题]

npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\vue-cce0b41c\dist\vue.esm.js
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\vue-cce0b41c\dist\vue.esm.js'
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\vue-cce0b41c\dist\vue.esm.js'
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\vue-cce0b41c\dist\vue.esm.js'
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules\.staging\vue-cce0b41c\dist\vue.esm.js' },
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules\.staging\vue-cce0b41c\dist\vue.esm.js'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules\.staging\vue-cce0b41c\dist\vue.esm.js',
npm ERR! parent: '@vue/cli' }
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 WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\apply-extends.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\argsert.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\command.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\common-types.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\completion-templates.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\completion.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\is-promise.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\levenshtein.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\middleware.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\obj-filter.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\parse-command.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\process-argv.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\usage.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\validation.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\yargs.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\yargs-1541a9eb\build\lib\yerror.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\capitalizeFirstLetter.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\capitalizeFirstLetter.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\LocalState.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\LocalState.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\data\mutations.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\data\mutations.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\networkStatus.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\networkStatus.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\Observable.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\Observable.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\ObservableQuery.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\ObservableQuery.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\observables.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\observables.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\observableToPromise.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\util\observableToPromise.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\data\queries.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\data\queries.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\QueryManager.d.ts.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\liuhandong\AppData\Roaming\npm\node_modules.staging\apollo-client-87bc6f4b\core\QueryManager.js.map'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\liuhandong\AppData\Roaming\npm-cache_logs\2021-01-13T02_24_11_904Z-debug.log

凌空翔翼的主页 凌空翔翼 | 菜鸟二级 | 园豆:230
提问于:2021-01-13 10:31
< >
分享
所有回答(4)
0

部分包文件没download下来吧. 删除了重试. 如果网络情况不太好就用taobao的npm源.

czd890 | 园豆:14488 (专家六级) | 2021-01-13 10:57
0

用cnpm进行安装,可以看我博客https://www.cnblogs.com/pythonywy/p/11430948.html

小小咸鱼YwY | 园豆:3312 (老鸟四级) | 2021-01-13 11:01
0

换个阿里的npm库

不知道风往哪儿吹 | 园豆:2037 (老鸟四级) | 2021-01-13 11:10
0

npm config set registry https://registry.npm.taobao.org
换成淘宝镜像就不会被墙

godcloudy | 园豆:18 (初学一级) | 2021-01-13 18:55
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册