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
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
npm upgrade -g npm installs 5.4.0 even though 5.4.0 is Pre-release
What's going wrong?
On previous versions of npm, when running npm pack, the tar file would include all directories (including test). With the most recent version of npm (5.4.0), this is not the case. The test directory is filtered out which is causing issues in our dependencies.
Along with the above described issue, the documentation does not match the actual behavior. If you take a look at https://docs.npmjs.com/misc/developers , you'll notice that the documentation does not call out that test will be ignored. If you take a look at the behavior as well as the specific line of code that caused this (https://github.com/npm/npm-packlist/blob/master/index.js#L36), you'll see that their is a disconnect.
The other issue is that we expected 5.3.0 to be installed when running npm upgrade -g npm isntead of 5.4.0. According to your docs, you say to install 5.4.0 you need to run npm upgrade -g npmc, but it appears that you can install it with just npm as well.
How can the CLI team reproduce the problem?
Setup a repo with a test directory
with version 5.4.0 of npm, run npm pack
run tar zxf
examine the contents
NOTICE: test is not included
The text was updated successfully, but these errors were encountered:
I'm opening this issue because:
npm pack
is filtering outtest
directoriesnpm upgrade -g npm
installs 5.4.0 even though 5.4.0 is Pre-releaseWhat's going wrong?
On previous versions of
npm
, when runningnpm pack
, the tar file would include all directories (includingtest
). With the most recent version ofnpm
(5.4.0), this is not the case. Thetest
directory is filtered out which is causing issues in our dependencies.Along with the above described issue, the documentation does not match the actual behavior. If you take a look at https://docs.npmjs.com/misc/developers , you'll notice that the documentation does not call out that
test
will be ignored. If you take a look at the behavior as well as the specific line of code that caused this (https://github.com/npm/npm-packlist/blob/master/index.js#L36), you'll see that their is a disconnect.The other issue is that we expected
5.3.0
to be installed when runningnpm upgrade -g npm
isntead of 5.4.0. According to your docs, you say to install 5.4.0 you need to runnpm upgrade -g npmc
, but it appears that you can install it with justnpm
as well.How can the CLI team reproduce the problem?
test
directory5.4.0
of npm, runnpm pack
tar zxf
test
is not includedThe text was updated successfully, but these errors were encountered: