0
I’m getting an error when I try to install the package @material-ui/core 3.9.0
in my application.
When I execute yarn add @material-ui/core
get the following return
yarn add v1.12.3
[1/4] Resolving packages...
warning @material-ui/core > [email protected]: this has been created when no compression library existed for Node.js. This isn't the case for years
warning @material-ui/core > [email protected]: Use uuid module instead
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
error [email protected]: The engine "node" is incompatible with this module. Expected version "0.6 || 0.8". Got "10.15.0"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
When I try to use npm install @material-ui/core
npm ERR! code ETARGET
npm ERR! notarget No matching version found for core@^3.9.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/robson/.npm/_logs/2019-01-16T18_13_20_542Z-debug.log
My current environment is
node v10.15.0
npm 6.4.1
yarn v1.12.3 (Ps : já tentei com a versão atual v1.13.0)
OS : Ubuntu 18.04
i ran "npm view @material-ui/core" And I got the following return
[email protected] | Proprietary | deps: 16 | versions: 448
Core Libs
dist
.tarball: https://registry.npmjs.org/core/-/core-1.0.113.tgz
.shasum: 3d87bff90c63bb1b6192d9051b7f11c6d8142ed4
.unpackedSize: 556.7 kB
dependencies:
amqp-dl: 0.2.4-0 hiredis: ~0.1.17 knox: 0.8.6 node-uuid: 1.4.1 rewire: ~1.1.2 xml2js: ~0.2.8
base64: 2.0.3 iconv: 2.0.6 mime: 1.2.4 pg: 1.1.0 stacktrace: 1.1.0
compress-buffer: 1.2.0 js-yaml: 3.2.3 mysql: 2.0.0-alpha3 redis: ~0.8.4 uriparser: >= 2.1.2
maintainers:
- albert-lacki <[email protected]>
- aldor <[email protected]>
- dreamlab <[email protected]>
- kuebk <[email protected]>
- mkwinta2 <[email protected]>
- psulowicz <[email protected]>
dist-tags:
latest: 1.0.113
published 10 months ago by dreamlab <[email protected]>
I have tried to remove Node, Yarn, npm and install again, tried with other versions and failed, someone has already had this problem ?
try removing package-lock.json, delete it and then type "npm install"
– Anderson Henrique
Type this and see what returns "npm view @material-ui/core"
– Anderson Henrique
@Andersonhenrique thanks for the answer, I tried to run "npm view @material-ui/core" posted what he returned in the question body
– Robson Araújo