create-react-app on Ubuntu Server 16.04.1 LTS

Created on 4 Sep 2016  ·  4Comments  ·  Source: facebook/create-react-app

Is the way to run it on Ubuntu Server 16.04
I try to run it, but have an error:

`root@ubuntu:/mnt/hgfs/Apps# create-react-app test
Creating a new React app in /mnt/hgfs/Apps/test.

Installing packages. This might take a couple minutes.
Installing react-scripts from npm...

[email protected] /mnt/hgfs/Apps/test
└── (empty)

npm WARN optional Skipping failed optional dependency /react-scripts/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /react-scripts/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save-dev" "--save-exact" "react-scripts"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /mnt/hgfs/Apps/test/node_modules/.react-scripts.DELETE/node_modules/Base64
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/mnt/hgfs/Apps/test/node_modules/.react-scripts.DELETE/node_modules/Base64' -> '/mnt/hgfs/Apps/test/node_modules/react-scripts/node_modules/Base64'
npm ERR! enoent ENOENT: no such file or directory, rename '/mnt/hgfs/Apps/test/node_modules/.react-scripts.DELETE/node_modules/Base64' -> '/mnt/hgfs/Apps/test/node_modules/react-scripts/node_modules/Base64'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /mnt/hgfs/Apps/test/npm-debug.log
npm ERR! code 1
npm install --save-dev --save-exact react-scripts failed
`

Most helpful comment

You just have to use: sudo npm i create-react-app -g

All 4 comments

This looks like either an npm bug or a network issue. I would recommend to update npm and try again.

Maybe is the version of node. You're using the v4.2.6. I'm using the v6.3.1 with Ubuntu 16.04 and I have no problem with the create-react-app. Can you upgrade it using nvm and try again?

I'm going to close because this is not something we could fix either way. Please file an issue with npm if it persists. Sorry we couldn't help you!

You just have to use: sudo npm i create-react-app -g

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xgqfrms-GitHub picture xgqfrms-GitHub  ·  3Comments

Evan-GK picture Evan-GK  ·  3Comments

onelson picture onelson  ·  3Comments

JimmyLv picture JimmyLv  ·  3Comments

adrice727 picture adrice727  ·  3Comments