创建iview框架的项目

时间:2022-05-17 11:48:29

http://www.cnblogs.com/jf-67/p/8479176.html

在使用‘vue init webpack my-project’创建项目时,出现了错误

npm ERR! code ELIFECYCLE
npm ERR! errno
npm ERR! chromedriver@2.43. install: `node install.js`
npm ERR! Exit status
npm ERR!
npm ERR! Failed at the chromedriver@2.43. install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above. npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\boao\AppData\Roaming\npm-cache\_logs\--14T09_46_00_0
90Z-debug.log

“chromedriver@2.43.1 install: `node install.js`”

解决方法

在你创建的项目目录下,比如创建的项目叫my-project,然后进入my-project这个目录,在该目录

中执行npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver