blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

npm install -g blitz --legacy-peer-deps not working on ubuntu #309

Closed muhammad-Osman closed 2 years ago

muhammad-Osman commented 3 years ago

What is the problem?

npm install -g blitz --legacy-peer-deps

is not working on ubuntu instead of this when i install with yarn in that case

yarn install

successfully but when i run

blitz new myAppName

blitz: no command found

image

Paste all your error logs here:

PASTE_HERE (leave the ``` marks)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/blitz/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! Unexpected end of JSON input while parsing near '...McTvOql/de\ninJw8zkC2'

npm ERR! A complete log of this run can be found in: npm ERR! /home/usman/.npm/_logs/2021-09-09T17_09_58_050Z-debug.log

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

npm install -g blitz --legacy-peer-deps

not working

What are detailed steps to reproduce this?

  1. npm install -g blitz --legacy-peer-deps
  2. blitz new myAppName

Run blitz -v and paste the output here:

PASTE_HERE (leave the ``` marks)

command not found

Please include below any other applicable logs and screenshots that show your problem:

No response

flybayer commented 3 years ago

what is output of npm -v?

oyatek commented 2 years ago

When I see

npm ERR! Unexpected end of JSON input while parsing near '...

I always do npm cache clean --force And it helps.

beerose commented 2 years ago

I'm closing this issue due to inactivity. Please reopen if the problem remains!