Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] E404 Not Found - GET https://registry.npmjs.org/create-index.js #7232

Closed
2 tasks done
PixGuy opened this issue Feb 19, 2024 · 2 comments
Closed
2 tasks done

[BUG] E404 Not Found - GET https://registry.npmjs.org/create-index.js #7232

PixGuy opened this issue Feb 19, 2024 · 2 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@PixGuy
Copy link

PixGuy commented Feb 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When I try to run npm init index.js (even if its a blank project with no dependencies) this happens:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-index.js - Not found
npm ERR! 404
npm ERR! 404  'create-index.js@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Expected Behavior

The project was supposed to run normally when executed

Steps To Reproduce

  1. Make an empty NPM project with npm init
  2. Attempt to run the project with npm init index.js

Environment

  • npm: 10.2.4
  • Node.js: 20.11.0
  • OS Name: Gentoo Linux
  • System Model Name: Custom
  • npm config:
; "user" config from /home/enhaced/.npmrc

registry = "https://registry.npmjs.org/"

; node bin location = /usr/bin/node
; node version = v20.11.0
; npm local prefix = /home/enhaced/nn
; npm version = 10.2.4
; cwd = /home/enhaced/nn
; HOME = /home/enhaced
; Run `npm config ls -l` to show all defaults.
@PixGuy PixGuy added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Feb 19, 2024
@ljharb
Copy link
Collaborator

ljharb commented Feb 19, 2024

What do you expect will happen with that command? npm init is usually run bare, and when given an argument, it installs a package named by that argument prefixed with create-.

@PixGuy
Copy link
Author

PixGuy commented Feb 20, 2024

What do you expect will happen with that command? npm init is usually run bare, and when given an argument, it installs a package named by that argument prefixed with create-.

issue on my end, sorry :(

@PixGuy PixGuy closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x
Projects
None yet
Development

No branches or pull requests

2 participants