"dependencies": {
"axios": "^0.21.1", 新規追加
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-axios": "^3.2.4",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
ERROR Failed to compile with 4 errors 10:11:27
These dependencies were not found:
* core-js/modules/es.object.to-string.js in ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js, ./src/router/index.js
* core-js/modules/es.string.iterator.js in ./src/router/index.js
* core-js/modules/web.dom-collections.iterator.js in ./src/router/index.js
To install them, you can run: npm install --save core-js/modules/es.object.to-string.js core-js/modules/es.string.iterator.js core-js/modules/web.dom-collections.iterator.js
上記コマンド実行もdirectryが存在しない旨のエラーが発生したため、npm のキャッシュをクリアし他ところ正常に作動した。
$ rm -rf node_modules
$ npm cache clean --fource
$ npm install