Next.js Discord

Discord Forum

Running app with npm

Unanswered
Will posted this in #help-forum
Open in Discord
Hi All,

I’ve recently come across an issue after sharing a project with a friend. It uses Express as a backend and Next for the app itself.

When running in development, the project is simply started from the root folder which starts both processes using the following start command –
"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "(cd api/ && npm run start) & (cd onboarding && npm run dev)",
    "db:truncate": "node truncate.js"
  }


Where npm run dev calls the next command.

This works perfectly on my macbook, however it does not work on their machine (Windows I believe). The first command to start the api tuns, but there is nothing but deprecation warnings from the next side of things. screenshot attached.

Any input is greatly appreciated!

2 Replies

Sun bear
Please use docker when sharing a project between machines. It ensures that the project is running on same environment.
This is probably a dependency issue where your machine is using X version of Z package and your friend is running Y version of Z package.