最初error1のエラーが出たため"use strict"
を文先頭に挿入し、解決しましたが
error2が出てしまい、ググってもよくわかりませんでした、、
該当箇所の空白も消してみましてたが治りませんでした
どなたかご教授願います
error1
1/opt/bitnami/apache2/htdocs/****/node_modules/laravel-mix/src/config.js:1 2(function (exports, require, module, __filename, __dirname) { let paths = new (require('./Paths'))();
error2
1/opt/bitnami/apache2/htdocs/****/node_modules/laravel-mix/src/Paths.js:41 2 root(append='') { 3 ^ 4 5SyntaxError: Unexpected token = 6 at exports.runInThisContext (vm.js:53:16) 7 at Module._compile (module.js:374:25) 8 at Object.Module._extensions..js (module.js:417:10) 9 at Module.load (module.js:344:32) 10 at Function.Module._load (module.js:301:12) 11 at Module.require (module.js:354:17) 12 at require (internal/module.js:12:17) 13 at Object.<anonymous> (/opt/bitnami/apache2/htdocs/****/node_modules/laravel-mix/src/config.js:2:18) 14 at Module._compile (module.js:410:26) 15 at Object.Module._extensions..js (module.js:417:10) 16 17npm ERR! Linux 4.4.0-1102-aws 18npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "development" 19npm ERR! node v4.2.6 20npm ERR! npm v3.5.2 21npm ERR! code ELIFECYCLE 22npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` 23npm ERR! Exit status 1 24npm ERR! 25npm ERR! Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'. 26npm ERR! Make sure you have the latest version of node.js and npm installed. 27npm ERR! If you do, this is most likely a problem with the package, 28npm ERR! not with npm itself. 29npm ERR! Tell the author that this fails on your system: 30npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 31npm ERR! You can get information on how to open an issue for this project with: 32npm ERR! npm bugs 33npm ERR! Or if that isn't available, you can get their info via: 34npm ERR! npm owner ls 35npm ERR! There is likely additional logging output above. 36 37npm ERR! Please include the following file with any support request: 38npm ERR! /opt/bitnami/apache2/htdocs/****/npm-debug.log 39 40npm ERR! Linux 4.4.0-1102-aws 41npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev" 42npm ERR! node v4.2.6 43npm ERR! npm v3.5.2 44npm ERR! code ELIFECYCLE 45npm ERR! @ dev: `npm run development` 46npm ERR! Exit status 1 47npm ERR! 48npm ERR! Failed at the @ dev script 'npm run development'. 49npm ERR! Make sure you have the latest version of node.js and npm installed. 50npm ERR! If you do, this is most likely a problem with the package, 51npm ERR! not with npm itself. 52npm ERR! Tell the author that this fails on your system: 53npm ERR! npm run development 54npm ERR! You can get information on how to open an issue for this project with: 55npm ERR! npm bugs 56npm ERR! Or if that isn't available, you can get their info via: 57npm ERR! npm owner ls 58npm ERR! There is likely additional logging output above. 59 60npm ERR! Please include the following file with any support request: 61npm ERR! /opt/bitnami/apache2/htdocs/***/npm-debug.log
あなたの回答
tips
プレビュー