我第一次跑这个:
npm install并获取此信息:
npm WARN engine laravel-mix@0.8.9: wanted: {"node":">=6.0.0"} (current: {"node":"4.4.7","npm":"2.15.8"})
npm WARN engine webpack-dev-server@2.4.2: wanted: {"node":">=4.7"} (current: {"node":"4.4.7","npm":"2.15.8"})
npm WARN optional dep failed, continuing fsevents@1.1.1
我可以对这些警告做些什么?我如何升级到它想要的东西?
我的package.json
"devDependencies": {
"axios": "^0.15.3",
"bootstrap-sass": "^3.3.7",
"jquery": "^3.1.1",
"laravel-mix": "^0.8.1",
"lodash": "^4.17.4",
"vue": "^2.1.10"
答案 0 :(得分:2)
更新nodejs,运行npm cache clear
,删除node_modules
文件夹并运行npm install