Node tutorial in Intermediate JS problem - node message-mixer.js ['caesar'|'symbol'|'reverse'] [amount] doesn't work

Hi! I don’t know if I’m doing something wrong or there’s something simple that I’m missing, but I’m trying to do the Intermediate JS tutorial, and inputting this into terminal:

node message-mixer.js [‘caesar’|‘symbol’|‘reverse’] [amount]

It’s not giving me the desired output though, and only returning:

bash: symbol: command not found
bash: reverse]: command not found
$ ls
encryptors.js message-mixer.js super-encoder.js
$ message-mixer.js
bash: message-mixer.js: command not found
$ import message-mixer.js
bash: import: command not found
$ console.log(process.env.PWD)
bash: syntax error near unexpected token `process.env.PWD’
$ process.env.HOME
bash: process.env.HOME: command not found

…Am I missing something crucial? Thanks in advance!

Hello, @boardjumper54513, and welcome to the forums.

That instruction is a bit misleading perhaps. Look at the examples below that to see how you actually enter the command:

Hey thanks so much! I got it a while ago - i think I should have read the instructions a bit more clearly - Thanks for taking the time to explain!

1 Like