Aquí está la cosa, voy a instalar la biblioteca element ui hoy, pero se informa un error cuando escribo el comando.
Así que busqué un montón de tutoriales en Internet, qué reemplazar la fuente npm, etc., sin éxito.
¡Finalmente lo resolví con éxito usando el siguiente método!
error
-
Primero abra la terminal e ingrese el siguiente comando.
npm i element-ui -S
-
Luego aparece un mensaje de error.
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
Solución
-
Así que eliminé todo el archivo node_modules.
¡Borrar todo!
-
Luego ingrese el siguiente comando.
npm i element-ui -S
-
Instalación exitosa.