一堆npm error怎么解决

来源:2-1 生命周期(上)

alluremyy

2019-04-13 23:19:54

npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.                                     npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!                                                                    npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.                                      npm WARN tarball tarball data for punycode@1.3.2 (sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=) seems to be corrupted. Trying one more time.                               npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.                                                                                                                   npm ERR! path D:\前端\vue\练习\my-project\node_modules\.staging\punycode-5f3d0bf8\punycode.js                                                                   npm ERR! code EPERM                                                             npm ERR! errno -4048                                                            npm ERR! syscall unlink                                                         npm ERR! Error: EPERM: operation not permitted, unlink 'D:\前端\vue\练习\my-project\node_modules\.staging\punycode-5f3d0bf8\punycode.js'                        npm ERR!  { [Error: EPERM: operation not permitted, unlink 'D:\前端\vue\练习\my-project\node_modules\.staging\punycode-5f3d0bf8\punycode.js']                   npm ERR!   cause:                                                               npm ERR!    { Error: EPERM: operation not permitted, unlink 'D:\前端\vue\练习\my-project\node_modules\.staging\punycode-5f3d0bf8\punycode.js'                   npm ERR!      errno: -4048,                                                     npm ERR!      code: 'EPERM',                                                    npm ERR!      syscall: 'unlink',                                                npm ERR!      path:                                                             npm ERR!       'D:\\前端\\vue\\练习\\my-project\\node_modules\\.staging\\punycode-5f3d0bf8\\punycode.js' },                                                     npm ERR!   stack:                                                               npm ERR!    'Error: EPERM: operation not permitted, unlink \'D:\\前端\\vue\\练习\\my-project\\node_modules\\.staging\\punycode-5f3d0bf8\\punycode.js\'',        npm ERR!   errno: -4048,                                                        npm ERR!   code: 'EPERM',                                                       npm ERR!   syscall: 'unlink',                                                   npm ERR!   path:                                                                npm ERR!    'D:\\前端\\vue\\练习\\my-project\\node_modules\\.staging\\punycode-5f3d0bf8\\punycode.js',                                                          npm ERR!   parent: 'url' }                                                      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 (though this is not recommended).                                                                              npm WARN tarball tarball data for prettier@^1.7.0 (sha512-sXe5lSt2WQlCbydGETgfm1YBShgOX4HxQkFPvbxkcwgDvGDeqVau8h+12+lmSVlP3rHPz0oavfddSZg/q+Szjw==) seems to be corrupted. Trying one more time.                                                                          

这样看不明白咋回事 http://img.mukewang.com/climg/5cb1fdd000017cca06760455.jpg

就从这一步之后就一直没反应,也没跳出to get started:之后的那些东西?从这之前的所有东西装的都没问题也能查到                                                 

 

   


写回答

1回答

_是你_

2019-04-14

你这个报错粘贴的太乱了,应该截个图片。创建项目到了最后哪一步你得多等一会,有的时候网慢可能就等的时间很长,前面安装要是没有问题可能就是你最后一步项目没有安装上呢,建议你再装一次,别着急等一会,因为我有时候安装也不成功,多试几次就ok啦

0

0 学习 · 10739 问题

查看课程