問題1:
- 問題描述:
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
- 解決方法:
npm install ajv@^5.0.0
問題2:
- 問題描述:
Module build failed: Error: Cannot find module '模塊名'
- 解決方法:
npm install 模塊名 --save-dev(關(guān)于環(huán)境的唯沮,表現(xiàn)為npm run dev 啟動不了)
npm install 模塊名 --save(關(guān)于項(xiàng)目的,比如main.js介蛉,表現(xiàn)為npm run dev 成功之后控制臺報(bào)錯(cuò))