npm ERR 404 npm ERR 404'@ vue / [email protected]'はnpmレジストリにありません。

今日は要素uiライブラリをインストールしますが、コマンドを入力するとエラーが報告されます。

それで、私はインターネット上でたくさんのチュートリアル、npmソースを置き換えるものなどを探しましたが、役に立ちませんでした。

最後に、次の方法で問題を解決しました。

エラー

  • まずターミナルを開き、次のコマンドを入力します。

    npm i element-ui -S
    
  • その後、エラーメッセージが表示されます。

    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
    

    ここに画像の説明を挿入

解決

  • そこで、node_modules全体を削除しました。

    全部削除してください!

  • 次に、次のコマンドを入力します。

    npm i element-ui -S
    
  • インストールに成功しました。
    ここに画像の説明を挿入

おすすめ

転載: blog.csdn.net/qq_43779149/article/details/123548776