Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为了兼容Babel7,一些babel的devDependencies可能要更新成7版本 #8

Open
EnrigleZ opened this issue Nov 21, 2018 · 1 comment

Comments

@EnrigleZ
Copy link
Collaborator

EnrigleZ commented Nov 21, 2018

比如:

"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.6",
"@babel/preset-env": "^7.1.6"

6和7版本的混用会导致 npm run build 时报错

更新的方式是卸载之前的版本,安装最新的(不知道更新了repo里的package.json之后 npm能不能自己升级这些包):
npm un babel-cli
npm install -D @babel/cli

@EnrigleZ
Copy link
Collaborator Author

@ babel/cli这种包命名法是Babel7特有的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant