SanJeet Singh
SanJeet Singh

Reputation: 1321

How to work with directories in Gulp?

I was following this tutorial. The writer mentions that I need to install node.js which I did. It is installed in

C:\users\me\AppData\Roaming\npm

After that the writer says I need to create a folder called project which I did. The folder is here

C:\users\me\project

Next the writer says that I need to

Run the npm init command from inside that directory.

which I don't understand. When I start command prompt as administrator I get

C:\Windows\System32>

when I run it without administrator, I get

C:\users\me>

How do I go inside my project directory then?

I have never used Gulp before and only once or twice used command prompt. I have been searching for a few hours now but I could not find anything. Maybe I am using the wrong search terms. Any help would be appreciated.

Why was it downvoted? If I could find the answer I swear I would not have posted this question and I clearly mentioned that I am a beginner.

Upvotes: 0

Views: 72

Answers (1)

Sven Schoenung
Sven Schoenung

Reputation: 30564

First off your problem has nothing to do with gulp specifically. You're not "working with directories in Gulp" as your title puts it. You're just working with directories in the Windows commmand prompt (cmd).

You should probably read a tutorial on how to use cmd first, before using a command line tool like gulp. Here's one for example.

To answer your question: open cmd as a non-admin user. You're now in the \users\me directory. Type:

cd project

You're now in the \users\me\project directory and can issue the npm init command.

Upvotes: 1

Related Questions