Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

485
Vistas
Npm ERR! Line breaks can’t be quoted on Windows

i have the following package.json code:

{
    "name": "pre-post",
    "version": "1.0.0",
    "description": "",
    "main": "basic-server.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1",
      "ignore": "echo \"\" >> .gitignore",
      "preignore": "touch .gitignore",
      "postignore": "echo \".gitignore\n.vscode/\nnode_modules/\" >> .gitignore"
    },
    "keywords": [],
    "author": "",
    "license": "ISC",
    "dependencies": {
      "linebreak": "^1.0.2",
      "open": "^7.4.0"
    }
}

after i run in node js command, i have the error message of npm ERR! Line breaks can't be quoted on Windows, any fix?

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

Check whether your package.json have swiper

There are 4 steps to solve this problem

  1. Remove "swiper" : "^5.4.5" from package.json file.(Check there should be no comma in last line of your json file)
  2. Run npm install command in your terminal.
  3. Run npm install swiper command.
  4. Now you will see everything has been installed successfully.
over 4 years ago · Santiago Trujillo Denunciar

0

Just don't install it from Git Bash on Windows. Use cmd.exe and it works as a charm !

over 4 years ago · Santiago Trujillo Denunciar

0

  1. Uninstall node.js from Control Panel/Programs
  2. Download fresh node.js installer and install them.
  3. (important) reboot system.
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda