大概率是node.js的版本过高,改换为10点几的版本再运行
如果换了之后出现gyp ERR! stack Error: gyp
failed with exit code: 1
则先输入npm install -g cnpm --registry=https://registry.npm.taobao.org
然后cnpm install
最后就可npm run dev
大概率是node.js的版本过高,改换为10点几的版本再运行
如果换了之后出现gyp ERR! stack Error: gyp
failed with exit code: 1
则先输入npm install -g cnpm --registry=https://registry.npm.taobao.org
然后cnpm install
最后就可npm run dev