NPM可以很好地安装一些软件包,但与其他软件包一起安装时会出现EPERM错误

时间:2019-06-26 02:54:18

标签: npm

我正在尝试在我的项目中安装react,但是npm不会安装它。

  • 我尝试清除缓存
  • 我尝试使用sudo
  • 我重新安装了node / npm
  • 在运行npm安装之后,我尝试删除除package.json之外的所有文件,并且对于我的package.json中的bootstrap jquery和popper.js效果很好,然后我尝试进行npm install react,但之后出现EPERM错误我尝试安装animate.css,它工作正常,但无法安装

package.json:

{
  "name": "shield-of-faith-baptist",
  "version": "1.0.0",
  "description": "The Npm Components for Shield of Faith Baptist's website",
  "author": "Zachiah",
  "license": "ISC",
  "dependencies": {
    "animate.css": "^3.7.2",
    "bootstrap": "^4.3.1",
    "jquery": "^3.4.1",
    "popper.js": "^1.15.0"
  }
}

我希望它能安装React 但是它给出了这个错误:

npm ERR! path ../loose-envify/cli.js
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall symlink
npm ERR! Error: EPERM: operation not permitted, symlink '../loose-envify/cli.js' -> '/media/pi/209B-7E54/Documents/Programming/Websites/Shield_of_Faith_Baptist/components/node_modules/.bin/loose-envify'
npm ERR!  [OperationalError: EPERM: operation not permitted, symlink '../loose-envify/cli.js' -> '/media/pi/209B-7E54/Documents/Programming/Websites/Shield_of_Faith_Baptist/components/node_modules/.bin/loose-envify'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, symlink '../loose-envify/cli.js' -> '/media/pi/209B-7E54/Documents/Programming/Websites/Shield_of_Faith_Baptist/components/node_modules/.bin/loose-envify'] {
npm ERR!     errno: -1,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'symlink',
npm ERR!     path: '../loose-envify/cli.js',
npm ERR!     dest: '/media/pi/209B-7E54/Documents/Programming/Websites/Shield_of_Faith_Baptist/components/node_modules/.bin/loose-envify'
npm ERR!   },
npm ERR!   stack: 'Error: EPERM: operation not permitted, symlink ' +
npm ERR!     "'../loose-envify/cli.js' -> " +
npm ERR!     "'/media/pi/209B-7E54/Documents/Programming/Websites/Shield_of_Faith_Baptist/components/node_modules/.bin/loose-envify'",
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../loose-envify/cli.js',
npm ERR!   dest: '/media/pi/209B-7E54/Documents/Programming/Websites/Shield_of_Faith_Baptist/components/node_modules/.bin/loose-envify',
npm ERR!   parent: 'components'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
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!     /home/pi/.npm/_logs/2019-06-26T02_23_57_388Z-debug.log

0 个答案:

没有答案