nest icon indicating copy to clipboard operation
nest copied to clipboard

Run start:X doesn't work

Open menme95 opened this issue 8 years ago • 2 comments

I'm submitting a...


[ ] Regression 
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

The bug appear when you create a project with nest-cli, then you copy code (with the package, everything except node_modules) in other folder, do npm install. Everything works perfectly except npm start:dev, start:prod... Only work npm run start/ npm start

Expected behavior

It should work in every site I have the code.

What is the motivation / use case for changing the behavior?

I had to change my folder structure.

Environment


Nest version: X.Y.Z
5.0.1
 
For Tooling issues:
- Node version: 10.0.0
- Platform:  Windows


menme95 avatar Jun 05 '18 08:06 menme95

npm run start:dev or npm run start:prod would require corresponding scripts in your package.json file, I don't believe this is related directly to Nest. When you replace the package.json you're effectively removing any defaults there may have been in the scripts property of the package.json file, you may want to check that directly.

Destreyf avatar Jun 13 '18 21:06 Destreyf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 24 '19 21:09 lock[bot]