nx icon indicating copy to clipboard operation
nx copied to clipboard

@nx/express plugin not generating package.json

Open udaya-reddy opened this issue 2 years ago • 3 comments

Current Behavior

image

Expected Behavior

package.json is also expected. Tried with version 17.0.2 and 16.10.0 of @nx/express.

GitHub Repo

No response

Steps to Reproduce

  1. install @nx/express@latest or @nx/[email protected]
  2. npx nx g @nx/express:application the above output is getting generated.

Nx Report

not sure where this is.

Failure Logs

No response

Package Manager Version

No response

Operating System

  • [ ] macOS
  • [ ] Linux
  • [X] Windows
  • [ ] Other (Please specify)

Additional Information

No response

udaya-reddy avatar Oct 27 '23 10:10 udaya-reddy

Thanks for reporting. As a workaround and probably the intended way moving forward is to use @nx/node

So in your scenario it would be @nx/node:app --framework=express

ndcunningham avatar Nov 01 '23 14:11 ndcunningham

Tried. that too. it does not generate package.json. even if I did a npm init and created one. npm install does not generate package-lock.json and whey I try to run nx run app:serve

nx run test1-service:serve:development

node:fs:600 handleErrorFromBinding(ctx); ^

Error: ENOENT: no such file or directory, open 'package-lock.json'

udaya-reddy avatar Nov 02 '23 05:11 udaya-reddy

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar May 01 '24 00:05 github-actions[bot]

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Jun 24 '24 00:06 github-actions[bot]