Answer the question
In order to leave comments, you need to log in
How to upgrade to bootstrap 4 in laravel 5.4?
I do this guide TYK
But I fall off with an error during assembly
[email protected]:~/www/webvoyager.pro$ npm run dev
> @ dev /var/www/production/data/www/webvoyager.pro
> node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/web pack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setu p/webpack.config.js
module.js:328
throw err;
^
Error: Cannot find module '/var/www/production/data/www/webvoyager.pro/node_modules/ cross-env/bin/cross-env.js'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
npm ERR! Linux 4.4.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! @ dev: `node node_modules/cross-env/bin/cross-env.js NODE_ENV=development n ode_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/l aravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script 'node node_modules/cross-env/bin/cross-env.js NO DE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --c onfig=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_ modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/larav el-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/production/data/www/webvoyager.pro/npm-debug.log
#нашел файл по этому пути и положил как требуется, далее повторяем сборку
[email protected]:~/www/webvoyager.pro$ npm run dev
> @ dev /var/www/production/data/www/webvoyager.pro
> node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/web pack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setu p/webpack.config.js
/var/www/production/data/www/webvoyager.pro/node_modules/laravel-mix/setup/webpack.c onfig.js:1
(function (exports, require, module, __filename, __dirname) { let path = require('pa th');
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet support ed outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at requireConfig (/var/www/production/data/www/webvoyager.pro/node_modules/webpa ck/bin/convert-argv.js:96:18)
at /var/www/production/data/www/webvoyager.pro/node_modules/webpack/bin/convert- argv.js:109:17
at Array.forEach (native)
npm ERR! Linux 4.4.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! @ dev: `node node_modules/cross-env/bin/cross-env.js NODE_ENV=development n ode_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/l aravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script 'node node_modules/cross-env/bin/cross-env.js NO DE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --c onfig=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_ modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/larav el-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/production/data/www/webvoyager.pro/npm-debug.log
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected] 1.1.1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question