Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

487
Views
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 answers
Answer question

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 Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!