C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01>npm i babel-loader -S
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (
hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (
hapi.im/commercial).
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (
hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN rm not removing C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01\node_modules\.bin\semver.cmd as it wasn't installed by C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01\node_modules\semver
npm WARN rm not removing C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01\node_modules\.bin\semver as it wasn't installed by C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01\node_modules\semver
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN babel-loader@8.0.6 requires a peer of
@babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ babel-loader@8.0.6
added 55 packages from 49 contributors, removed 40 packages, updated 813 packages and audited 10682 packages in 1117.738s
found 9 vulnerabilities (8 moderate, 1 high)
run
npm audit fix
to fix them, or
npm audit
for details
C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01>
C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01>npm run build
> pratica1@1.0.0 build C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01
> cross-env NODE_ENV=production webpack
Hash: b801d4710412aa434f4d
Version: webpack 4.41.2
Time: 2340ms
Built at: 2019-10-25 12:32:38 PM
1 asset
Entrypoint main = app.js
[0] ./src/index.js 3.37 KiB {0} [not cacheable] [built] [failed] [1 error]
ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '
@babel/core'
babel-loader@8 requires Babel 7.x (the package '
@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'.
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
at Object.<anonymous> (C:\Users\adm\Documents\praticaBootstrap\bootstrapPratica01\node_modules\babel-loader\lib\index.js:10:11)
at Module._compile