Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when npm install #12

Closed
boyvicky opened this issue Feb 19, 2020 · 1 comment
Closed

Error when npm install #12

boyvicky opened this issue Feb 19, 2020 · 1 comment

Comments

@boyvicky
Copy link

boyvicky commented Feb 19, 2020

clone code and install packages. Below error:

F:\gitDemo\react>npm install
npm WARN tarball tarball data for echarts@4.5.0 (sha512-q9M0errodeX/786uPifro76x0elbrUQkbSHh235QzbkaASuvP9AQoMErhGBno4iC/yq6kFDLqgmm3XCPWQGLzA==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for antd@3.25.2 (sha512-+qF1bgU7rUkPIkggIIV0fmm+9pPacl50BBd6NNUR2+kKJOFYjwrnP39ZqJRsYNy5bX9VgR454fz9KEuW7HPjog==) seems to be corrupted. Trying one more time.
npm ERR! path F:\gitDemo\react\node_modules\.staging\antd-968e5766\dist\antd-with-locales.js.map
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'F:\gitDemo\react\node_modules\.staging\antd-968e5766\dist\antd-with-locales.js.map'
npm ERR!  { [Error: EPERM: operation not permitted, unlink 'F:\gitDemo\react\node_modules\.staging\antd-968e5766\dist\antd-with-locales.js.map']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 'F:\gitDemo\react\node_modules\.staging\antd-968e5766\dist\antd-with-locales.js.map'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path:
npm ERR!       'F:\\gitDemo\\react\\node_modules\\.staging\\antd-968e5766\\dist\\antd-with-locales.js.map' },
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, unlink \'F:\\gitDemo\\react\\node_modules\\.staging\\antd-968e5766\\dist\\antd-with-locales.js.map\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path:
npm ERR!    'F:\\gitDemo\\react\\node_modules\\.staging\\antd-968e5766\\dist\\antd-with-locales.js.map',
npm ERR!   parent: 'react' }
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 ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\gw00179760\AppData\Roaming\npm-cache\_logs\2020-02-19T01_47_44_795Z-debug.log

F:\gitDemo\react>

I use the administrator's permission to execute, Can you help to solve and why this happened?

@duxianwei520
Copy link
Contributor

@boyvicky npm报错的话,可以挂个梯子,基本上都是你的网络不好造成的,或者换淘宝的cnpm源

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants