Добавление плагина Babel в проект Vue CLI не работает - PullRequest
1 голос
/ 21 октября 2019

Я пытаюсь добавить Babel в уже существующий проект Vue CLI. Следуя указаниям здесь: https://www.npmjs.com/package/@vue/cli-plugin-babel

Я пытался:

vue add babel

это приводит к ошибке:

npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/vue-cli-plugin-babel - Not found
npm ERR! 404
npm ERR! 404  'vue-cli-plugin-babel@latest' 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
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!     /Users/tomlewis1/.npm/_logs/2019-10-21T17_11_26_039Z-debug.log
 ERROR  command failed: npm install --loglevel error -D vue-cli-plugin-babel

Я пытался удалить кэш NPM и обновитьNPM, узел и Vue CLI. Должен ли я указать другой реестр?

1 Ответ

0 голосов
/ 21 октября 2019

Я получил ту же ошибку. Думая, что это может быть ошибкой, но использование vue add @vue/cli-plugin-babel, кажется, работает. Попробуйте!

...