我的package.json文件中有git依赖项.当我在我的react app文件夹中执行sudo npm install时,我收到此错误
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master
https://github.com/lrojas94/react-file-base64.git /home/admin1/.npm/_cacache/tmp/git-clone-462782fb
npm ERR! /home/admin1/.npm/_cacache/tmp/git-clone-462782fb/.git: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/admin1/.npm/_logs/2017-07-18T08_58_10_906Z-debug.log
admin1@ubuntu:~/hys_pms/ui$ nohup: appending output to ‘nohup.out’
Run Code Online (Sandbox Code Playgroud)
这是我的package.json
{
"name": "react-hys-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"annogenerate": "^0.8.1",
"bootstrap": "^3.3.7",
"cors-prefetch-middleware": "^1.0.0",
"es6-promise": "^4.1.0",
"express": "^4.15.3",
"fixed-data-table": "^0.6.4",
"flexbox-react": "^4.4.0",
"font-awesome": "^4.7.0",
"images-upload-middleware": "^1.1.1",
"isomorphic-fetch": "^2.2.1", …Run Code Online (Sandbox Code Playgroud)