Installation warnings and errors on Ubuntu Xenial 16.04.x
See original GitHub issueIs this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
- The primary issue is while using NPM v8.0.3
- I have tested with NPM v3.10.10 (node v6.11.0) and received the following warnings, but no errors:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.17 (node_modules/react-scripts/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
Which terms did you search for in User Guide?
N/A
Environment
node -v
: 8.0.3npm -v
:5.0.3yarn --version
(if you use Yarn): 0.22npm ls react-scripts
(if you haven’t ejected): empty
Then, specify:
- Operating system: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial
- Browser and version (if relevant): N/A (Not used in installation process)
Steps to Reproduce
- On the specified version of Ubuntu, install NVM and Node.js (which auto-installs NPM version)
- Run
npm install -g create-react-app
- See warnings and errors
Expected Behavior
No installation errors or warnings.
Actual Behavior
benjamin@thor:~/MY_APPS $ create-react-app my-first-react-app
Creating a new React app in /home/benjamin/MY_APPS/my-first-react-app.
Installing packages. This might take a couple minutes.
Installing react, react-dom, and react-scripts...
> fsevents@1.0.17 install /home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/home/benjamin/.nvm/versions/node/v8.1.2/bin/node',
node-pre-gyp verb cli '/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@8.1.2 | linux | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/lib/binding/Release/node-v57-linux-x64/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@8.1.2 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/build'
SOLINK_MODULE(target) Release/obj.target/.node
COPY Release/.node
make: Leaving directory '/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/build'
node-pre-gyp info ok
npm notice created a lockfile as package-lock.json. You should commit this file.
+ react@15.6.1
+ react-dom@15.6.1
+ react-scripts@1.0.7
added 1193 packages in 31.426s
Reproducible Demo
No demo created, easy to repro
Do you want to request a feature or report a bug? Report a bug.
What is the current behavior? Receiving errors and warnings while executing the create-react-app ...
command
benjamin@thor:~/MY_APPS $ create-react-app my-first-react-app
Creating a new React app in /home/benjamin/MY_APPS/my-first-react-app.
Installing packages. This might take a couple minutes.
Installing react, react-dom, and react-scripts...
> fsevents@1.0.17 install /home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/home/benjamin/.nvm/versions/node/v8.1.2/bin/node',
node-pre-gyp verb cli '/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@8.1.2 | linux | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/lib/binding/Release/node-v57-linux-x64/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@8.1.2 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-linux-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/build'
SOLINK_MODULE(target) Release/obj.target/.node
COPY Release/.node
make: Leaving directory '/home/benjamin/MY_APPS/my-first-react-app/node_modules/fsevents/build'
node-pre-gyp info ok
npm notice created a lockfile as package-lock.json. You should commit this file.
+ react@15.6.1
+ react-dom@15.6.1
+ react-scripts@1.0.7
added 1193 packages in 31.426s
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Thanks for the update. 😃
FWIW Node 8 should work with latest version. But you still need to downgrade npm to 4.x because 5.x is too buggy right now.