-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows 运行建议 #25
Comments
成功了,提醒下其他童鞋,windows下有几个问题:node-sass的问题,通过cnpm解决或者单独下载node-sass包,拷贝到项目node_modules目录下;(注意:该项目不能删除package.json文件夹下的node-sass,因为里面很多文件依赖sass-loader,sass-loader需要依赖node-sass);第二个是要安装npm install cross-env,修改package.json文件,具体配置见楼主issue21NODE_ENV的问题;第三个问题,凡是关于编辑器或IDE问题语法报错,查找对应编辑器插件或在IDE里面进行ES6语法设置(如果设置完,run项目时候还报错,那要考虑是环境的问题和依赖的问题) |
安装完成以后,npm run dev的时候 报错404。 查看了一下报错信息 , 发现是node-sass 安装失败,重新安装两次还是失败以后 :用cnpm install node-sass安装成功,现在运行成功了 |
|
搞了一小时没启动起来,我啥都不说了 |
npm install 一直出错
npm run build 出错 提示missing script: build 使用npm run build:prod 可以了 |
win10系统,1、git clone https://github.com/PanJiaChen/vue-element-admin.git |
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ |
我试过了很多办法,最后。。。都不行 |
Error: Cannot find module 'D:\admin\node_modules@vue\cli-service\bin\vue-cli-service.js' |
npm install always errors |
依赖都安装了,node是7.9版本,执行npm run build:prod命令时,报错NODE_ENV不是内部或外部命令,sit同理。执行npm run dev的时候也报错,不支持es6...扩展符,看了下babelrc配置,好像也没啥问题,试了n次,去babel官网查了下也没有,这个问题有没有遇到过的~~(windows7系统)
The text was updated successfully, but these errors were encountered: