node 16 启动 vue项目报错

转自:https://forum.vuejs.org/t/node-16-causes-issues/124517/2

Syntax Error: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (93)

Node Sass has been deprecated: Sass: LibSass is Deprecated 1

解决方法:

npm uninstall node-sass

npm install --save-dev sass

Then specify your CSS loader :

module.exports = {

  css: {

    loaderOptions: {

      sass: {

        implementation: require('sass'),

      },

    },

  }

}


You may also need to upgrade your sass-loader 1

注意:之前好使的项目,后来不好使,一定要先检查本地环境!!!

你可能感兴趣的:(node 16 启动 vue项目报错)