shashkovdanil / clean-publish

Removing configuration files and fields in package.json before publishing to npm

Home Page:https://www.npmjs.com/package/clean-publish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js 15 issue

ai opened this issue · comments

➜ npx clean-publish
/usr/bin/env: ‘node\r’: No such file or directory
npm ERR! code 127
npm ERR! path /home/ai/Dev/storeon
npm ERR! command failed
npm ERR! command sh -c clean-publish

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ai/.npm/_logs/2020-10-22T23_37_49_537Z-debug.log

@shashkovdanil maybe we use a Windows \r\n and it causes a problem in npm 7 on Linux?

Okay, I will try fix that on weekend

Do you use \n or \r\n in your files?

Here is the issue yarnpkg/yarn#8106

Do you publish this npm package on Windows machine?

I checked that there is \n in sources.

Fixed in 2.0