Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile in windows. #70

Open
ssaguiar opened this issue May 20, 2021 · 10 comments
Open

Can't compile in windows. #70

ssaguiar opened this issue May 20, 2021 · 10 comments

Comments

@ssaguiar
Copy link

I tried to compile in windows but it won't because it gives error when it try to use the command 'cp'.
So it will run only in Linux / MacOS machines?

@ac2-warp
Copy link

ac2-warp commented Jul 2, 2021

Try adding the line below to your package.json scripts section and running it with "npm run updatesemanticwin"

"updatesemanticwin": "xcopy .\App\styles\theme.config .\node_modules\semantic-ui-less\theme.config /Y /R && rmdir .\node_modules\semantic-ui-less\site /S /Q && mkdir .\node_modules\semantic-ui-less\site && xcopy .\App\styles\site\. .\node_modules\semantic-ui-less\site /S /Y"

@AlexanderQueen
Copy link

AlexanderQueen commented Apr 13, 2022

Try adding the line below to your package.json scripts section and running it with "npm run updatesemanticwin"

"updatesemanticwin": "xcopy .\App\styles\theme.config .\node_modules\semantic-ui-less\theme.config /Y /R && rmdir .\node_modules\semantic-ui-less\site /S /Q && mkdir .\node_modules\semantic-ui-less\site && xcopy .\App\styles\site_._ .\node_modules\semantic-ui-less\site /S /Y"

It gives error.

40 error code EJSONPARSE
41 error path C:\Users\AlexanderWayne\Desktop\javascript-obfuscator-ui-master/package.json
42 error JSON.parse Unexpected string in JSON at position 647 while parsing '{
42 error JSON.parse "name": "javascript-obfuscator-web",'
43 error JSON.parse Failed to parse JSON data.
43 error JSON.parse Note: package.json must be actual JSON, not just JavaScript.
44 verbose exit 1

@sanex3339 can you give a hand of help? Thx anticipated.
@sanex3339 P.S Dependencies are old. Project must be updated.

@gaamaaresosa
Copy link

gaamaaresosa commented Apr 15, 2023

No proper working steps
They think all are experts like them.

Even I am spending more than 7 hours on this:
VMWARE Linux Ubundu 20.04 server
Windows 10 WSL Linux Ubundu 20.04 server
Windows 10 Node.js

All are failing with tons of errors

@slig
Copy link
Collaborator

slig commented Apr 15, 2023

The UI at obfuscator.io IS for non-experts. Use that.

@slig slig closed this as completed Apr 15, 2023
@gaamaaresosa
Copy link

The UI at obfuscator.io IS for non-experts. Use that.

image

Look at this

@slig
Copy link
Collaborator

slig commented Apr 15, 2023

If you do believe that there are virus there you shouldn't trust the code on this repo. It's even worse to download and run code on your machine. Either you trust this repo or don't.

@gaamaaresosa
Copy link

The UI at obfuscator.io IS for non-experts. Use that.

How can you close this when it is not completed ?
Unfare...

@gaamaaresosa
Copy link

If you do believe that there are virus there you shouldn't trust the code on this repo. It's even worse to download and run code on your machine. Either you trust this repo or don't.

I belive the code 100% from github
But we can't trust website and browsers being injejected a lot now a days.

@gaamaaresosa
Copy link

gaamaaresosa commented Apr 15, 2023

These errors from Windows 10 Powershell:

"updatesemanticwin": "xcopy .\App\styles\theme.config .\node_modules\semantic-ui-less\theme.config /Y /R && rmdir .\node_modules\semantic-ui-less\site /S /Q && mkdir .\node_modules\semantic-ui-less\site && xcopy .\App\styles\site_._ .\node_modules\semantic-ui-less\site /S /Y"

image

"scripts": {
"start": "node server.js",
"webpack:dev": "webpack --mode development --config webpack.conf.js --watch --color --progress",
"webpack:prod": "NODE_ENV=production webpack --mode production --config webpack.conf.js --progress",
"postinstall": "npm run updatesemantic && npm run webpack:prod",
"updatesemantic": "cp App/styles/theme.config ./node_modules/semantic-ui-less/theme.config; rm -Rf ./node_modules/semantic-ui-less/site; cp -R App/styles/site ./node_modules/semantic-ui-less/",
"updatesemanticwin": "xcopy .\App\styles\theme.config .\node_modules\semantic-ui-less\theme.config /Y /R && rmdir .\node_modules\semantic-ui-less\site /S /Q && mkdir .\node_modules\semantic-ui-less\site && xcopy .\App\styles\site_._ .\node_modules\semantic-ui-less\site /S /Y"
},

PS C:\javascript-obfuscator-ui-master> npm run updatesemanticwin npm ERR! code EJSONPARSE npm ERR! path C:\javascript-obfuscator-ui-master/package.json npm ERR! JSON.parse Unexpected token "A" (0x41) in JSON at position 681 while parsing near "...anticwin\": \"xcopy .\\App\\styles\\theme.con..." npm ERR! JSON.parse Failed to parse JSON data. npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in: C:\Users\BRAYSUNG\AppData\Local\npm-cache\_logs\2023-04-15T19_58_43_390Z-debug-0.log PS C:\javascript-obfuscator-ui-master>

@slig slig reopened this Apr 15, 2023
@gaamaaresosa
Copy link

These errors from Windows 10 WSL Ubuntu 20.04

sudo git clone https://github.com/javascript-obfuscator/javascript-obfuscator-ui.git
cd javascript-obfuscator-ui
sudo npm run updatesemantic
sudo npm run updatesemantic

> javascript-obfuscator-web@4.1.2 updatesemantic /home/abc/javascript-obfuscator-ui
> cp App/styles/theme.config ./node_modules/semantic-ui-less/theme.config; rm -Rf ``./node_modules/semantic-ui-less/site; cp -R App/styles/site ./node_modules/semantic-ui-less/

cp: cannot create regular file './node_modules/semantic-ui-less/theme.config': No such file or directory cp: cannot create directory './node_modules/semantic-ui-less/': No such file or directory npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! javascript-obfuscator-web@4.1.2 updatesemantic: cp App/styles/theme.config ./node_modules/semantic-ui-less/theme.config; rm -Rf ./node_modules/semantic-ui-less/site; cp -R App/styles/site ./node_modules/semantic-ui-less/ npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the javascript-obfuscator-web@4.1.2 updatesemantic 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! /root/.npm/_logs/2023-04-15T20_07_23_388Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants