创建iview框架的项目

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

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

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.43.1 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.43.1 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\2018-11-14T09_46_00_0
90Z-debug.log

[email protected] install: `node install.js`”

解决方法

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

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

猜你喜欢

转载自www.cnblogs.com/xiaonangua/p/9961615.html
今日推荐