Hello, it seems that you are in the wrong directory in the terminal.
The error you are getting might simply mean that the migration.js
file wasn’t found. Looking at your editor it seems that all your source files are located in a directory named capstone-project-1-x… , but in the terminal, you are at path ~/X publisher project .
When you run command node migration.js
this file must be in your current working directory (or accessed via the PATH system/environment variable). So before running the command simply execute command ls
which will print the list of files in the current working directory.
The same goes for commands npm test
and npm start
- those commands need to be executed in the directory where file package.json
is placed.
If you are in the wrong directory (command ls
didn’t print information about file migration.js
) use command cd directory_name
to move between directories.