记录解决vuepress 插件无法起作用
- 错误信息 warning [vuepress] cannot resolve plugin
1 插件配置方式正确
config.js
按官方方式 正确安装插件
yarn add -D @vuepress/plugin-back-to-top@next
2 依赖正确
"devDependencies": {
"vuepress": "^1.0.3"
}
有必要配置 且需要支持插件的 "vuepress" 版本
3 解决
rm -rf node_modules
rm -rf package-lock.json
rm -rf yarn.lock
重新安装模块
yarn install 或 npm install
over!