npm安装问题,遇到一些问题

时间:2017-04-14 17:25:45

标签: laravel npm vue.js

我第一次跑这个:

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"

1 个答案:

答案 0 :(得分:2)

更新nodejs,运行npm cache clear,删除node_modules文件夹并运行npm install