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

npm corrupts files? #328

Closed
avy-the-one opened this issue May 5, 2016 · 3 comments
Closed

npm corrupts files? #328

avy-the-one opened this issue May 5, 2016 · 3 comments

Comments

@avy-the-one
Copy link

Problem:

When i try to create a simple express application
Then some files inside of packages downloaded by npm are corrupted in a strange way.

It looks like some part from end of file is being placed in the beggining.

Steps to reproduce:

cd ~
mkdir node_test ; cd node_test
npm init // anything
npm i --save express
nano index.js // copy-paste from express hello world example
node index.js

Error i recieve is:
npm-err

cat node-modules/send/index.js (begging, notice the 'return'):
send-index-js-beggining

cat node-modules/send/index.js (end of file, notice the unexpected 'end'):
send--js-eof

If i manually fix that, then same type of error happens in other file in other module (in my case that was a 'mime' package)

Windows 10 Home Insider Preview Single Language. Build 14332.rs1_release.160422-1940. Russian language.
node -v - 6.0.0
npm -v - 3.8.6

Tried lxrun /uninstall & lxrun /install - no success
Outside of bash (on Windows), same commands are working perfectly;

@avy-the-one
Copy link
Author

Possible dup of #313

@ddfznt
Copy link

ddfznt commented May 6, 2016

Same as #313 #317!

@benhillis
Copy link
Member

Correct, closing out as this is tracked by #313 and 317. Thanks for reporting.

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

No branches or pull requests

4 participants