You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Make an empty NPM project with npm init
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/.npmrcregistry = "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.
The text was updated successfully, but these errors were encountered:
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-.
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-.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When I try to run
npm init index.js
(even if its a blank project with no dependencies) this happens:Expected Behavior
The project was supposed to run normally when executed
Steps To Reproduce
npm init
npm init index.js
Environment
The text was updated successfully, but these errors were encountered: