#Help with Next.JS visual studi code

126 messages · Page 1 of 1 (latest)

gritty sequoiaBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

frigid breach
#

PS C:\Users\Doggo\Downloads\tundracord> npx create-next-app@latest my-app --typescript --tailwind --eslint
npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • npx create-next-app@latest my-app --typescript --tailwind --eslint
  •   + CategoryInfo          : ObjectNotFound: (npx:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
#

i wanted to know the cmd to download Next.JS

sharp wraith
frigid breach
#

thank you

#

it was a error fixed

#

nevermind

#

still says

#

npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • npx create-next-app@latest my-app --typescript --tailwind --eslint
  •   + CategoryInfo          : ObjectNotFound: (npx:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
#

is there anything

#

i need to add

#

@sharp wraith

marsh saddle
#

@frigid breach So is the problem solved?

frigid breach
#

npx is not

#

a cmd

#

it

#

says

marsh saddle
#

You installed node right?

frigid breach
#

ys

marsh saddle
#

does node -v works for you?

frigid breach
#

do i do

#

it

#

on

#

packag

#

e

#

also?

marsh saddle
#

what does node -v outputs for you?

frigid breach
#

C:\Users\Doggo\Downloads\tundracord>node -v
v21.7.1

C:\Users\Doggo\Downloads\tundracord>

marsh saddle
#

npm -v ?

#

Please restart vscode once

frigid breach
#

ok

#

C:\Users\Doggo\Downloads\tundracord>npm -v
10.5.0

#

@marsh saddle

marsh saddle
#

npx -v ?

frigid breach
#

10.5.0

#

it just

#

says

#

when

#

i use

#

that cmd

marsh saddle
#

so, it's working?

frigid breach
#

C:\Users\Doggo\Downloads\tundracord>npx create-next-app@latest my-app --typescript --tailwind --eslint
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\Doggo\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\Doggo\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\Doggo\AppData\Local\npm-cache_logs\2024-03-16T03_52_46_153Z-debug-0.log

#

no

#

its

#

not

marsh saddle
#

Please reinstall node once, seems like the installation wasn't done properly

frigid breach
#

i did

#

reinstall it

#

3 times.

#

@marsh saddle

#

but i will

#

once more

marsh saddle
#

no, wait

frigid breach
#

LTS or Rec-

frigid breach
marsh saddle
#

no need if you already did

#

can you find npm folder in C:\Users\Doggo\AppData\Roaming\ ?

marsh saddle
#

create it

frigid breach
#

`
C:\Users\Doggo\AppData\Roaming>npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Doggo\AppData\Roaming\package.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\Doggo\AppData\Roaming\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\Doggo\AppData\Local\npm-cache_logs\2024-03-16T03_59_27_833Z-debug-0.log

C:\Users\Doggo\AppData\Roaming>`

marsh saddle
#

did you create npm folder inside C:\Users\Doggo\AppData\Roaming ?

frigid breach
#

no

#

like create

marsh saddle
#

then do

frigid breach
#

a normal folder

#

?

marsh saddle
#

yes

#

folder named npm

frigid breach
#

ok

#

now fixed?

marsh saddle
#

can you close all cmds & vscode

#

and try npx once again?

frigid breach
#

im

#

doing

#

in

#

terminal

#

not vscode

#

i will try tho

marsh saddle
#

@frigid breach

#

Status?

frigid breach
#

last time

#

i used

#

it

#

it would

#

not

#

run on dev

marsh saddle
#

So, problem solved?

frigid breach
#

yes

#

until

#

the

#

localhost

#

part

#

can you keep this open

#

bc i don't wanna create another

marsh saddle
#

I think this thread should be closed, and new one should be opened. Since the problem mentioned in the thread is solved.

frigid breach
#

`PS C:\Users\Doggo\Downloads\tundracord> npx shadcn-ui@latest init
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
node:fs:580
return binding.open(
^

Error: package.json: ENOENT: no such file or directory, open 'C:\Users\Doggo\Downloads\tundracord\package.json'
at Object.openSync (node:fs:580:18)
at Object.readFileSync (node:fs:459:35)
at Object.readFileSync (C:\Users\Doggo\AppData\Local\npm-cache_npx\125ee17d583c4e03\node_modules\jsonfile\index.js:50:22)
at _e (file:///C:/Users/Doggo/AppData/Local/npm-cache/_npx/125ee17d583c4e03/node_modules/shadcn-ui/dist/index.js:245:5248)
at _t (file:///C:/Users/Doggo/AppData/Local/npm-cache/_npx/125ee17d583c4e03/node_modules/shadcn-ui/dist/index.js:245:5379)
at file:///C:/Users/Doggo/AppData/Local/npm-cache/_npx/125ee17d583c4e03/node_modules/shadcn-ui/dist/index.js:245:5606
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:120:12) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Users\Doggo\Downloads\tundracord\package.json'
}`

#

no

#

it's not done

marsh saddle
#

It technically is, also there are too many messages. Please open a new one?

#

I would help there

frigid breach
#

ok

marsh saddle
#

Mark the message that helped you solve as solution to close it

frigid breach
#

rate

#

limit

#

reached

#

pls

#

help

#

in dm's

#

@marsh saddle

#

pls

#

pls

marsh saddle
#

WDYM by rate limit?

frigid breach
#

it

#

says

marsh saddle
#

what says? You need to be specific, man

#

Close this thread. @frigid breach

frigid breach
#

ok

#

check

#

I JUST SAID

#

@marsh saddle

gritty sequoiaBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1218339255865180372 message)