我正在尝试在我的项目中安装react,但是npm不会安装它。
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