How-to-npm tutorial - Make a new directory and `cd` into it

In the back end certificate ‘manage packages with npm’ section you must first complete a tutorial. During the tutorial you are asked to create a new directory and cd into it.

I have created a new file called howtonpm on the left hand side where the files are displayed in the cloud9 environment. When I try to cd into it I get this:

josh001:~/workspace $ cd howtonpm
bash: cd: howtonpm: Not a directory

Did anyone else have this problem? Why can I not access this directory? Please help

Thank you

You just said you created a new file called howtonpm; so there is no directory named howtonpm to access.

yes you’re correct I misunderstood. A directory needs to be created not a file