Lab-Launching Mongod. Error creating user

Hi, I´m stuck here because the following command from mongoDB lab doesn´t work for me.

C:\Users\XXXX>mongo admin --host localhost:27000 --eval ‘db.createUser({user: “m103-admin”, pwd: “m103-pass”, roles: [ {role: “root”, db: “admin”}]})’
MongoDB shell version v4.2.2
connecting to: mongodb://localhost:27000/admin?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“f32adca9-20e8-406b-85e1-053c43a9c6b2”) }
MongoDB server version: 4.2.2
2020-01-29T13:24:21.455+0100 E QUERY [js] uncaught exception: SyntaxError: ‘’ literal not terminated before end of script :
@(shell eval):1:21
2020-01-29T13:24:21.455+0100 E - [main] exiting with code -4

Does anybody have a clue? all the strings are closed I think

Thanks

Hi @Alejandro_22663,

Did you set up the Vagrant environment on your host machine ? If not then please refer Chapter 0 otherwise you wouldn’t be able to do the labs.

Please run this command inside the vagrant machine and not in your host operating system.

Please let me know if you have any questions.

Thanks,
Shubham Ranjan
Curriculum Services Engineer