npm error:“ Cannot find module 'core-js/modules/es7.object.entries'”
See original GitHub issueVersion
3.0.0
Node and OS info
Node 10.80, npm 6.2, windows10
Steps to reproduce
npm i -g @vue/cli
vue ui
internal/modules/cjs/loader.js:583
Error: Cannot find module 'core-js/modules/es7.object.entries'
temp solutoin:
npm i core-js -g
and then, it works!
vue ui
🚀 Starting GUI...
🌠 Ready on http://localhost:8000
What is expected?
🚀 Starting GUI…
🌠 Ready on http://localhost:8000
What is actually happening?
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module ‘core-js/modules/es7.object.entries’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\leaff\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\_apollo-upload-server@5.0.0@apollo-upload-server\lib\middleware.js:14:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
temp solutoin:
npm i core-js -g
and then, it works!
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into the same issue in my mac. Solved it by installing the package globally.
npm install core-js -g
go to global directory npm or yarn
ex : ~/AppData/Local/Yarn/Data/global
yarn add core-js npm i core-js --save