#offline

40 messages · Page 1 of 1 (latest)

lethal fox
#

which file do I need to run when i use create-next-app offline
I have downloaded all the basic libraries offline
Just wanted to know how can I run create-next-app offline.

fallow geodeBOT
#

🔎 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)

rough anchor
#

you can't. Because the repo is online and will be requested from a online source. So when you are offline, you can't get this specific repo. You can copy an existing repo from your files on your pc @lethal fox

lethal fox
#

I don't know how can I add next in environment variables cuz I don't know what to write

rough anchor
#

you mean how to create a nextjs Project?

lethal fox
#

I downloaded the libraries

rough anchor
#

As I said: offline is not possible. As you said the command is right:

lethal fox
#

Thanks I will do something to get network to my pc

rough anchor
#

yea, you should. If you already have an existing app, you can start you app even offline

rough anchor
#

which command do you execute to try to start?

lethal fox
#

npm run build (tried other scripts)

rough anchor
#

just to get this right. We are talking about starting not creating right?

lethal fox
#

Yes

rough anchor
#

to start your app, you need to use the command npm run dev

lethal fox
#

Did but isn't

#

Starting

rough anchor
#

because you are using the wrong command:

npm run build (tried other scripts)

#
- npm run build (tried other scripts)
+ npm run dev 
lethal fox
#

I did bro

#

By tried other scripts I meant this only

#

I used
Npm run build
Npm run dev
Npm run start
And npm run lint

#

Even tried to debug

rough anchor
#

whats the error when using npm run dev?

lethal fox
#

It gives off
"next is not a script, cmd, etc etc"

#

Even though I have downloaded next

rough anchor
#

execute npm install

#

oh.. that need to download stuff..

#

it seems like you haven't next

lethal fox
#

Yes and I don't have network on my pc

#

I mean I don't get network for my pc

rough anchor
#

then you need to find a way to get next into your project, else you can't work with next

lethal fox
#

Thats what I meant with adding an environment variable

#

Anyways thanks

#

I will do something

lethal fox
rough anchor
#

It's very complicated for me to help you in this situation without knowing your whole pc setup. You don't want to share this, because it's to much. I am sorry