Jump to content

npm run build fails PS1.7


Recommended Posts

Hello. Could anyone share working package.json and webpack.config.js files? I tried the original ones from the downloaded pack, tried ones from github repo. I tried running npm install and I also tried installed them one by one. When I run npm run build command I get this error : 

 

let config = {
^^^
 
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported 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 (/home/lukas/Desktop/projektai/statybiniai/public/themes/classic/_dev/node_modules/webpack/bin/convert-argv.js:96:18)
    at /home/lukas/Desktop/projektai/statybiniai/public/themes/classic/_dev/node_modules/webpack/bin/convert-argv.js:109:17
    at Array.forEach (native)
 
npm ERR! Linux 4.10.0-32-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `webpack`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script 'webpack'.
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 prestashop-classic-dev-tools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs prestashop-classic-dev-tools
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls prestashop-classic-dev-tools
npm ERR! There is likely additional logging output above.
 
npm ERR! Please include the following file with any support request:
npm ERR!     /home/lukas/Desktop/projektai/statybiniai/public/themes/classic/_dev/npm-debug.log
 
Any ideas how to fix this ? PrestaShop version: 1.7.2.1
Link to comment
Share on other sites

  • 4 years later...

Hi i have a problem with compile prestashop themes/classic/_dev

PS version: 1.7.8.3

I use laragon on windows as serwer

Error:
C:\laragon\www\prestabiolab\themes\classic\_dev>npm run build

> [email protected] build C:\laragon\www\prestabiolab\themes\classic\_dev
> NODE_ENV=production webpack --progress --colors --debug --display-chunks

'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: NODE_ENV=production webpack --progress --colors --debug --display-chunks
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     C:\Users\Asus\AppData\Roaming\npm-cache\_logs\2022-02-01T09_42_05_621Z-debug.log

 

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...