npm ERR! Linux 4.15.0-36-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "create-react-app"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /tmp/npm-7054-19e3727d
npm ERR! code EROFS
npm ERR! errno -30
npm ERR! syscall mkdir
npm ERR! rofs EROFS: read-only file system, mkdir '/tmp/npm-7054-19e3727d'
npm ERR! rofs This is most likely not a problem with npm itself
npm ERR! rofs and is related to the file system being read-only.
npm ERR! rofs
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.
npm ERR! Please include the following file with any support request:
npm ERR! /home/path[...]/npm-debug.log
I have just started learning react and I get this following error when I try to install the create-react-app.
I use Ubuntu 18.04.1 LTS.
I looked online but the solutions that I found so far were not very helpful. What I have tried already:
1. Reinstalling nodejs and npm
2. Creating .npm-global and and adding the file to the path
3. Tried --no-bin-links
chownit--no-bin-linksargument to the install command. e.g.$ npm install create-react-app --no-bin-links, however I'm not sure how reliantcreate-react-appis on having bin links - but worth trying.npmversion as mentioned here: github.com/npm/cli/issues/4838#issuecomment-1148412095. Hard to debug without more specific information about the bounty issuer's environment/setup.Node >= 14.0.0 and npm >= 5.6pwdat terminal at the location you trying to runnpx create-react-appand add it to the question