jp@jp:~$ npm install -g create-react-app
npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path …/lib/node_modules/create-react-app/index.js
npm ERR! dest /home/jp/.npm-global/bin/create-react-app
npm ERR! errno -13
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:1000 “/home/jp/.npm”
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jp/.npm/_logs/2019-10-24T13_13_35_073Z-debug.log
.npm folder is available on path ./home/ not in ./home/jp/
I have already install node 10 and npm .
How to fix this issue ?
NOTE: I am new user on ubuntu OS so not able to fix this issues