我要重启这个项目
A project base on node.js koa2 vue2 mysql
# install dependencies
npm install
# koa2 serve with hot reload at localhost:8889
npm run server
# build the program
npm run dev
$ npm install --save sequelize
# And the following:
$ npm install --save mysql2
Error: Cannot resolve module 'net' on node_modules/joi/lib @ ./~/joi/lib/string.js 3:10-24
node: {
net: 'empty',
tls: 'empty',
dns: 'empty'
}
add these in the webpack.config.
For detailed explanation on how things work, checkout the guide and docs for vue-loader.