question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module '@babel/preset-es2015'

See original GitHub issue

$ npm install --save -g solgraph npm WARN deprecated @babel/preset-es2015@7.0.0-beta.53: 👋 We’ve deprecated any official yearly presets in 6.x in favor or babel-preset-env. For 7.x it would be @babel/preset-env. /home/gauran/.nvm/versions/node/v8.10.0/bin/solgraph -> /home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/solgraph.js

solgraph@0.3.2 postinstall /home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph npm run build

solgraph@0.3.2 build /home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph babel -d dist src

{ Error: Cannot find module ‘@babel/preset-es2015’ from ‘/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph’ at Function.module.exports [as sync] (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/resolve/lib/sync.js:43:15) at resolveStandardizedName (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/files/plugins.js:101:31) at resolvePreset (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/files/plugins.js:58:10) at loadPreset (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/files/plugins.js:77:20) at createDescriptor (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/config-descriptors.js:114:9) at items.map (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/config-descriptors.js:69:50) at Array.map (<anonymous>) at createDescriptors (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/config-descriptors.js:69:29) at createPresetDescriptors (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/config-descriptors.js:61:10) at presets (/home/gauran/.nvm/versions/node/v8.10.0/lib/node_modules/solgraph/node_modules/@babel/core/lib/config/config-descriptors.js:43:19) code: ‘MODULE_NOT_FOUND’ } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! solgraph@0.3.2 build: babel -d dist src npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the solgraph@0.3.2 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/gauran/.npm/_logs/2018-08-06T11_09_40_157Z-debug.log npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/solgraph/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! solgraph@0.3.2 postinstall: npm run build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the solgraph@0.3.2 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/gauran/.npm/_logs/2018-08-06T11_09_40_955Z-debug.log :~$

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
ghostcommented, Aug 6, 2018

Having exactly the same issue

0reactions
raineorshinecommented, Dec 4, 2022

Babel upgraded and solgraph v1.0.0.0 released.

Let me know if this is still broken and I will reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module babel-preset-es2015 - Stack Overflow
From the error it seems that you're using version 7. The es20XX-presets are deprecated, so I recommend you switch to @babel/preset-env . First ......
Read more >
Babel @babel/preset-es2015 Module not found · Issue #10633
I've installed babel 7 through the documentation command. npm install -D babel-loader @babel/core @babel/preset-env @babel/preset-es2015 ...
Read more >
babel/preset-es2015 - Babel.js
Enable transformation of ES6 module syntax to another module type. Setting this to false will not transform modules. spec. boolean , defaults to...
Read more >
babel-preset-es2015 - npm
Babel preset for all es2015 plugins. ... Start using babel-preset-es2015 in your project by running `npm i babel-preset-es2015`.
Read more >
Error: Cannot find module 'babel-preset-es2015' 报错
向Vue 项目中导入element-ui 发生Cannot find module 'babel-preset-es2015' 的错误这个错误的意思就是,不能从你的项目依赖中 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found