NPM not working under any circumstances
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, node.js
- Área
- cli
Línea de trabajo
El informe menciona npm 6.14.5, Node v14.5.0, macOS Catalina y un proyecto de React que utiliza webpack/dev.config.js. Empieza reproduciendo el error EACCES de /usr/local/lib/node_modules y el fallo de npm run; después, determina si el problema pertenece a NativeScript CLI o a los permisos locales de npm. Se considera terminado cuando se haya confirmado una reproducción específica del proyecto y se haya verificado una ruta de inicio en localhost.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello,
I am trying to run NPM on my Mac but it is having the same issue. I have followed all the steps to try and fix this, but when I install after un-insttalling, I get npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
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.
And I cannot run the npm to local host. When I try using npm run, I get this;
npm run
Lifecycle scripts included in react-redux-router:
preinstall
npm set audit false
start
webpack-dev-server --config webpack/dev.config.js --watch
available via npm run-script:
build
cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --color
heroku-postbuild
npm run build
precommit
eslint src
prod
NODE_ENV=production node server.js
I tried to run delete node_modules but it said I did not recognize the command. Both NPM and Node are updated to their lastest updated versions, npm at 6.14.5 and node at v14.5.0. My mac is running Catalina 10.15.5. Any idea why this is happening or how I can fix it?
Describe the bug
To Reproduce
I just go into my npm and try to start it or run it and I get the output above.
Expected behavior
for it to run my project on localhost:3000 so I can see my work
Sample project
Additional context
Please let me know if you have any questions.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.1k
- Forks
- 204
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 8
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NativeScript/nativescript-cli
-
in-progress
NativeScript/nativescript-cli#6140 · 2 comentarios · 1 asignado ·
-
NativeScript/nativescript-cli#6090 · 1 asignado ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 reacción · 1 asignado ·
-
question
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
NativeScript/nativescript-cli#5992 · 5 comentarios ·
-
feature-pending-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
NativeScript/nativescript-cli#5975 ·
Todos los issues de NativeScript/nativescript-cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Seeed-Studio/wiki-documents#5655 · 2 comentarios ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
capricorn86/happy-dom#2435 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Edit: CW+ Abiertochannels:edit check:passed
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100