首页 > 解决方案 > nuxt.js npm run "dev DeprecationWarning: Tapable.plugin is deprecated "

问题描述

所以我收到了一个 nuxt 项目,我想在我的本地主机上运行它,但起初它给了我一个关于我的 npm 版本太旧的错误,所以我运行npm install并再次尝试,但它给了我以下错误:

 ERROR  (node:3316) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead


 WARN  Compiled with 1 warnings                                     friendly-errors 16:18:10


 WARN  in ./assets/scss/main.scss                                   friendly-errors 16:18:10

Module Warning (from ./node_modules/postcss-loader/src/index.js):   friendly-errors 16:18:10
Warning

(343:5) start value has mixed support, consider using flex-start instead
                                                                    friendly-errors 16:18:10
 @ ./assets/scss/main.scss 4:14-224 14:3-18:5 15:22-232
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js

标签: npmvuejs2nuxt.jsnpm-scripts

解决方案


推荐阅读