You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had an issue on Linux (Debian stable) and mac OS when installing regpack via npm, and it took me a while to figure it out, so although this is not very important I thought I'd share, in case it can help.
First I installed regpack globally, with
[sudo] npm i -g regpack
Then tried it out
regpack input.js > output.js
# : No such file or directory
:No such file or directory is the output and no file is created
So I removed everything, cloned the git repository and used npm link . from there ...
[sudo] npm uninstall -g regpack
git clone git@github.com/Siorki/RegPack.git
cd RegPack
npm i
[sudo] npm link .
I didn't really understand what was going on, so once again .... uninstall everything
cd RegPack
[sudo] npm unlink .
Re-install from npm
[sudo] npm i -g regpack
I wanted to check the "filetype" of the node "binary", because I've had issues with node.js, python or other scripts before between different OS's
file ~/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack
/home/jc/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack: Pascal source, ASCII text, with CRLF line terminators
CRLF line terminators? Well let's change that and see what happens next
So I decided to change that
dos2unix ~/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack
dos2unix: converting file /home/jc/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack to Unix format ...
And now
regpack input.js > output.js
stats: 1897B to 1066B (-831B, -43.8%)
The thing is if I check the file in the repository I cloned previously, ìt doesn't show exactly the same output
RegPack (master) $ file bin/regpack
bin/regpack: Pascal source, ASCII text
no CRLF here
Maybe you could add this line in the .gitattributes to force the line endings?
bin/regpack -crlf
Cheers
The text was updated successfully, but these errors were encountered:
Hi,
First thanks for this great tool.
I've had an issue on Linux (Debian stable) and mac OS when installing regpack via npm, and it took me a while to figure it out, so although this is not very important I thought I'd share, in case it can help.
First I installed regpack globally, with
Then tried it out
:No such file or directory is the output and no file is created
So I removed everything, cloned the git repository and used
npm link .
from there ...Tried it out
I didn't really understand what was going on, so once again .... uninstall everything
Re-install from npm
I wanted to check the "filetype" of the node "binary", because I've had issues with node.js, python or other scripts before between different OS's
file ~/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack /home/jc/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack: Pascal source, ASCII text, with CRLF line terminators
CRLF line terminators? Well let's change that and see what happens next
So I decided to change that
dos2unix ~/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack dos2unix: converting file /home/jc/.nvm/versions/node/v7.5.0/lib/node_modules/regpack/bin/regpack to Unix format ...
And now
regpack input.js > output.js stats: 1897B to 1066B (-831B, -43.8%)
The thing is if I check the file in the repository I cloned previously, ìt doesn't show exactly the same output
no CRLF here
Maybe you could add this line in the .gitattributes to force the line endings?
Cheers
The text was updated successfully, but these errors were encountered: