ME ESTA DANDO ESTE ERROR : Checking peerDependencies of eslint-config-airbnb@latest Local ESLint installation not found. The config that ...

Henry Luis Pinedo Borrell

Henry Luis Pinedo Borrell

Pregunta
studenthace 5 años

ME ESTA DANDO ESTE ERROR :

Checking peerDependencies of eslint-config-airbnb@latest

Local ESLint installation not found.

The config that you’ve selected requires the following dependencies:

eslint-plugin-react@^7.20.0 @typescript-eslint/eslint-plugin@latest eslint-config-airbnb@latest eslint@^5.16.0 || ^6.8.0t-plugin-jsx-a11y@^6.3.0 eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0 @typescript-eslint/parser@latest

? Would you like to install them now with npm? Yes

Installing eslint-plugin-react@^7.20.0, @typescript-eslint/eslint-plugin@latest, eslint-config-airbnb@latest, eslint@^5.t@^2.21.2, eslint-plugin-jsx-a11y@^6.3.0, eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0, @typescript-eslint/par

npm WARN eslint-config-react-app@5.2.1 requires a peer of @typescript-eslint/eslint-plugin@2.x but none is installed. Yo

npm WARN eslint-config-react-app@5.2.1 requires a peer of @typescript-eslint/parser@2.x but none is installed. You must

npm WARN eslint-config-react-app@5.2.1 requires a peer of eslint@6.x but none is installed. You must install peer depend

npm WARN eslint-config-react-app@5.2.1 requires a peer of eslint-plugin-react-hooks@1.x || 2.x but none is installed. Yo

npm WARN eslint-loader@3.0.3 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dep

npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.

3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

npm ERR! code EACCES

npm ERR! syscall mkdir

npm ERR! path /mnt/c/Users/platzi_curso/prework_example/node_modules/.staging

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, mkdir '/mnt/c/Users/platzi_curso/prework_example/node_modules/.staging’

npm ERR! [OperationalError: EACCES: permission denied, mkdir '/mnt/c/Users/platzi_curso/prework_example/node_modules/.s

npm ERR! cause: [Error: EACCES: permission denied, mkdir '/mnt/c/Users/platzi_curso/prework_example/node_modules/.stag

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘mkdir’,

npm ERR! path: '/mnt/c/Users/platzi_curso/prework_example/node_modules/.staging’

npm ERR! },

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘mkdir’,

npm ERR! path: ‘/mnt/c/Users/platzi_curso/prework_example/node_modules/.staging’,

npm ERR! parent: '@eslint/eslintrc’

npm ERR! }

npm ERR!

npm ERR! The operation was rejected by your operating system.

npm ERR! It is likely you do not have the permissions to access this file as the current user

npm ERR!

npm ERR! If you believe this might be a permissions issue, please double-check the

npm ERR! permissions of the file and its containing directories, or try running

npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2020-10-08T23_59_41_047Z-debug.log

EACCES: permission denied, open './.eslintrc.json’

Error: EACCES: permission denied, open './.eslintrc.json’

at Object.openSync (fs.js:462:3)

at Object.writeFileSync (fs.js:1384:35)

at writeJSONConfigFile (/mnt/c/Users/platzi_curso/prework_example/node_modules/eslint/lib/init/config-file.js:50:8)

at Object.write (/mnt/c/Users/platzi_curso/prework_example/node_modules/eslint/lib/init/config-file.js:124:13)

at writeFile (/mnt/c/Users/platzi_curso/prework_example/node_modules/eslint/lib/init/config-initializer.js:58:16)

at /mnt/c/Users/platzi_curso/prework_example/node_modules/eslint/lib/init/config-initializer.js:608:29

at processTicksAndRejections (internal/process/task_queues.js:97:5)

➜ prework_example

1 respuestas
para escribir tu comentario
    Luis Lira

    Luis Lira

    studenthace 5 años

    Según el mensaje de error es que no encontrando la instalación de eslint de forma local. Verifica que esté instalada :) si no, solo haz

    npm i -D eslint
    o
    npm i -g eslint

Curso de Prework: Buenas Prácticas y Entorno de Desarrollo en macOS 2019

Curso de Prework: Buenas Prácticas y Entorno de Desarrollo en macOS 2019

Comienza tus proyectos de desarrollo para JavaScript configurando un entorno de desarrollo cómodo y adaptado a tus necesidades. Empieza por la herramienta más poderosa para un desarrollador: la terminal. Aprenderás a instalarla, ejecutar comandos y compilar código. Haz parte del trabajo colaborativo entre desarrolladores configurando Github, creando repositorios remotos, y aprendiendo a hacer push y pull.

Curso de Prework: Buenas Prácticas y Entorno de Desarrollo en macOS 2019
Curso de Prework: Buenas Prácticas y Entorno de Desarrollo en macOS 2019

Curso de Prework: Buenas Prácticas y Entorno de Desarrollo en macOS 2019

Comienza tus proyectos de desarrollo para JavaScript configurando un entorno de desarrollo cómodo y adaptado a tus necesidades. Empieza por la herramienta más poderosa para un desarrollador: la terminal. Aprenderás a instalarla, ejecutar comandos y compilar código. Haz parte del trabajo colaborativo entre desarrolladores configurando Github, creando repositorios remotos, y aprendiendo a hacer push y pull.