vue 创建项目 Cannot read property ‘indexOf‘ of undefined

vue 创建项目Cannot read property ‘indexOf’ of undefined

这个问题是创建项目的项目名不对,重新换个项目名就解决了.
比如:你创建的项目名:test
改成:test1 就行了