Picture of RunawayHorse .
npm Packages: making adapt-authoring folder the current working directory
by RunawayHorse . - Friday, 1 December 2017, 2:50 PM
 

 

Hi Guys,

I am trying to install the authoring tool and am currently stuck on Step 3 of the manual (https://github.com/adaptlearning/adapt_authoring/wiki/Install-on-Server):

Navigate to the adapt_authoring folder you cloned earlier to make it the current working directory.

Could you please give a bit more detailed explanation on how exactly to make adapt_authoring folder the current working directory? 🤓

I had a look here - https://github.com/adaptlearning/adapt_authoring/wiki/Just-Enough-Command-Line-for-Installing and cannot understand how exactly to write the "cd directory-name" command?

The route to my adapt_authoring folder is users/livenglishcoach/adapt_authoring

I also tried usr/local/adapt_authoring.

Still no such file or directory.

 

I am using MacOS HighSierra, 10.13.1 (17B1003)

Mongod is running fine (waiting for connections on port 27017)

 

Thank you very much in advance!

 

Picture of Matt Leathes
Re: npm Packages: making adapt-authoring folder the current working directory
by Matt Leathes - Friday, 1 December 2017, 3:59 PM
 

Assuming that:

  • you are logged in as the user 'liveenglishcoach'
  • your 'current working directory' in the terminal is your 'home directory' i.e. /Users/liveenglishcoach
  • you cloned the Adapt project into a folder within your home directory called adapt_authoring

Then all you have to do is run cd adapt_authoring

Equally you could use an 'absolute' path to that folder i.e. cd /Users/liveenglishcoach/adapt_authoring to get there regardless of your 'current working directory'.

IMPORTANT: macOS, like all operating systems except Windows, is case-sensitive. Therefore if you try to go to /users instead of /Users you won't get anywhere...

There's some more in-depth tutorials in using the Terminal on macOS here: https://computers.tutsplus.com/tutorials/navigating-the-terminal-a-gentle-introduction--mac-3855

Picture of RunawayHorse .
Re: npm Packages: making adapt-authoring folder the current working directory
by RunawayHorse . - Friday, 1 December 2017, 4:57 PM
 

Hi Matt!

Thank you so much for your speedy reply and for the solution!

This command finally worked cd adapt_authoring

The other ones did not for some reason.

LIVEnglishCoach:~ livenglishcoach$ cd Users/livenglishcoach/adapt_authoring

-bash: cd: Users/livenglishcoach/adapt_authoring: No such file or directory

LIVEnglishCoach:~ livenglishcoach$ cd users/livenglishcoach/adapt_authoring

-bash: cd: users/livenglishcoach/adapt_authoring: No such file or directory

LIVEnglishCoach:~ livenglishcoach$ cd adapt_authoring

LIVEnglishCoach:adapt_authoring livenglishcoach$ 

 

Thank you very much again!

Picture of Matt Leathes
Re: npm Packages: making adapt-authoring folder the current working directory
by Matt Leathes - Friday, 1 December 2017, 5:41 PM
 

You're missing the / from the front of the path in the other commands i.e. it should be:

cd /Users/livenglishcoach/adapt_authoring

and not

cd Users/livenglishcoach/adapt_authoring

If you leave off the initial forward-slash you are asking it to look for Users/livenglishcoach/adapt_authoring in the current directory