liangxiaojuan / eleme

restructure..
1.6k stars 564 forks source link

npm install 后,npm run dev出错 #1

Closed gzhss closed 7 years ago

gzhss commented 7 years ago

D:\git\eleme\eleme-master\node_modules\semver\semver.js:293 throw new TypeError('Invalid Version: ' + version); ^

TypeError: Invalid Version: D:\git\eleme\eleme-master>doskey ll=dir $* 3.10.10 at new SemVer (D:\git\eleme\eleme-master\node_modules\semver\semver.js:293:11) at Range.test (D:\git\eleme\eleme-master\node_modules\semver\semver.js:1036:15)

liangxiaojuan commented 7 years ago

在没翻墙的 情况下 最好用 cnpm (用淘宝的镜像源)

liangxiaojuan commented 7 years ago

更新下 代码 ,如果没有一些环境, 请 下载 cnpm install -g vue-cli cnpm install -g eslint cnpm install -g eslint ,在重启下终端,在执行npm run dev

typ1758 commented 7 years ago

cnpm install -g vue-cli cnpm install -g eslint cnpm install -g eslint ,在重启下终端,在执行npm run dev 还是报错,起不起来

ghost commented 7 years ago

@typ1758 mac 是不是需要加 sudo? sudo npm install -g eslint

ghost commented 7 years ago

@typ1758 应该是npm版本的问题,你应该npm i npm 然后复制到node文件夹就ok了