npm ERR 404 npm ERR 404 ‘@vue/[email protected]‘ is not in the npm registry.

Here's the thing, I'm going to install the element ui library today, but an error is reported when I type the command.

So I looked for a bunch of tutorials on the Internet, what to replace the npm source, etc., to no avail.

Finally I solved it successfully using the following method!

error

  • First open the terminal and enter the following command.

    npm i element-ui -S
    
  • Then an error message appears.

    npm WARN deprecated [email protected]: core-js@<3.4 
    is no longer maintained and not recommended for usage due to the number of issues. Because of the 
    V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even 
    if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.     
    -v15 not found
    npm ERR! 404
    npm ERR! 404  '@vue/[email protected]' is not in the npm registry.
    npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
    npm ERR! 404 It was specified as a dependency of '@vue/cli-service'
    npm ERR! 404
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, http url, or git url.
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\86132\AppData\Roaming\npm-cache\_logs\2022-03-17T05_34_59_509Z-debug.log
    

    insert image description here

Solution

  • So I deleted the entire node_modules.

    Delete the whole thing!

  • Then enter the following command.

    npm i element-ui -S
    
  • Successful installation.
    insert image description here

Guess you like

Origin blog.csdn.net/qq_43779149/article/details/123548776