1.安装nodejs

2、安装vue-cli

3、配置webstorm

webstorm启动vue项目

4、配置Run/Debug configurations

webstorm启动vue项目

5、编译时可能存在问题:

1)'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序 或批处理文件

解决:npm install webpack-dev-server --save-dev

2)Module build failed: Error: Cannot find module 'node-sass'报错问题

解决:npm install node-sass --save

如果上面不行,就使用cnpm ,先安装该模块

A.npm install -g cnpm --registry=https://registry.npm.taobao.org

B.cnpm install node-sass --save

3)Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)

解决:

先删除:

cnpm uninstall --save node-sass   /   npm uninstall --save node-sass

安装:

cnpm install --save node-sass    /    npm install --save node-sass

相关文章:

  • 2021-05-09
  • 2021-10-25
  • 2021-09-15
  • 2022-12-23
  • 2021-07-31
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-06-05
  • 2021-11-09
  • 2021-08-06
  • 2021-05-25
相关资源
相似解决方案