Current Behavior
This issue seems to have been closed with no actual solution. npm view very much still has the same error #30610.
> nx run my-package:nx-release-publish
Something unexpected went wrong when checking for existing dist-tags.
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at runExecutor (/home/circleci/my-project/node_modules/@nx/js/src/executors/release-publish/release-publish.impl.js:156:37)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
When I manually run the command to fetch dist tags for my npm package I get indeed nothing returned. Which is not valid json.
# exits without returning anything
npm view @my-org/my-package versions dist-tags --json --"@my-org:registry=https://npm.pkg.github.com"
Expected Behavior
Continue as if the package doesn't exist or doesn't have any dist tags?
Otherwise how to we pre-release beta versions of a package if it's never been released before?
GitHub Repo
No response
Steps to Reproduce
- Steps to Reproduce
- publish a new package with dist-tag next
- ensure no latest tag exists for the package
- publish a the same package again
Nx Report
NX Report complete - copy this into the issue template
Node : 22.14.0
OS : darwin-arm64
Native Target : aarch64-macos
yarn : 4.1.0
daemon : Disabled
nx : 22.7.5
@nx/js : 22.7.5
@nx/eslint : 22.7.5
@nx/workspace : 22.7.5
@nx/jest : 22.7.5
@nx/cypress : 22.7.5
@nx/detox : 22.7.5
@nx/devkit : 22.7.5
@nx/eslint-plugin : 22.7.5
@nx/expo : 22.7.5
@nx/module-federation : 22.7.5
@nx/next : 22.7.5
@nx/plugin : 22.7.5
@nx/react : 22.7.5
@nx/rollup : 22.7.5
@nx/storybook : 22.7.5
@nx/vite : 22.7.5
@nx/vitest : 22.7.5
@nx/web : 22.7.5
@nx/webpack : 22.7.5
typescript : 5.9.3
---------------------------------------
Cache Usage: 200.02 MB / 46.04 GB
Failure Logs
> nx run my-package:nx-release-publish
Something unexpected went wrong when checking for existing dist-tags.
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at runExecutor (/home/circleci/my-project/node_modules/@nx/js/src/executors/release-publish/release-publish.impl.js:156:37)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Package Manager Version
yarn, but irrelevant since nx seems to use npm for this process anyways
Operating System
Additional Information
No response
Current Behavior
This issue seems to have been closed with no actual solution.
npm viewvery much still has the same error #30610.When I manually run the command to fetch dist tags for my npm package I get indeed nothing returned. Which is not valid json.
Expected Behavior
Continue as if the package doesn't exist or doesn't have any dist tags?
Otherwise how to we pre-release beta versions of a package if it's never been released before?
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
yarn, but irrelevant since nx seems to use npm for this process anyways
Operating System
Additional Information
No response