neutralinojs / neutralinojs

Portable and lightweight cross-platform desktop application development framework
https://neutralino.js.org
Other
7.46k stars 376 forks source link

Error when using build.sh #125

Closed limenleap closed 5 years ago

limenleap commented 5 years ago

Expected Behavior
Was hoping to execute build.sh on Linux and get a fresh build of Neutralino

Actual Behavior
Figured out that I needed Nodejs, npm and webpack. Installed all of these on a fresh Ubuntu 18x

Steps to Reproduce the Problem
Start with a fresh install of Ubuntu 18x (Desktop) Install Node, webpack, npm

Run sudo sh build.sh

Here is the error

ERROR in neutralino.js from UglifyJs
Unexpected token: name (authbasic) [neutralino.js:93,5]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! neutralino-client-library@1.0.0 build: `webpack -p`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the neutralino-client-library@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/sabufrancis/.npm/_logs/2018-12-01T08_36_07_796Z-debug.log

Specifications

shalithasuranga commented 5 years ago

What is your webpack version? Can you try removing node_modules and running npm i

limenleap commented 5 years ago

Webpack version is 3.5.6 How do I remove node_modules? Sorry I am new to Node so I dont know... but the error message says that "node_modules" is missing

shalithasuranga commented 5 years ago

You can do like following

cd neutralino.js
rm -rf node_modules
npm i

But before all get changes if there are, from remote repository

git pull origin master
limenleap commented 5 years ago

Got it to work. Thanks