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

Bundlephobia Error: InstallError #17

Open
LucaBlackDragon opened this issue Dec 29, 2021 · 4 comments
Open

Bundlephobia Error: InstallError #17

LucaBlackDragon opened this issue Dec 29, 2021 · 4 comments

Comments

@LucaBlackDragon
Copy link

I'm hitting this error building a TS library:

InstallError: InstallError
    at Object.installPackage (C:\Users\myuser\mylib\node_modules\package-build-stats\build\utils\installation.utils.js:140:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.getPackageStats (C:\Users\myuser\mylib\node_modules\package-build-stats\build\getPackageStats.js:78:5)
    at async Object.calculateBundlephobiaStats (C:\Users\myuser\mylib\node_modules\rollpkg\dist\bundlephobiaStats.js:35:30)
    at async Object.progressEstimator (C:\Users\myuser\mylib\node_modules\progress-estimator\src\logger.js:58:27)
    at async rollpkg (C:\Users\myuser\mylib\node_modules\rollpkg\dist\cli.js:164:13) {
  originalError: 'tail: invalid option -- 1\r\n' +
    "Try `tail --help' for more information.\r\n" +
    'npm ERR! code EINVALIDTAGNAME\n' +
    'npm ERR! Invalid tag name "$(npm": Tags may not have any characters that encodeURIComponent encodes.\n' +
    '\n' +
    'npm ERR! A complete log of this run can be found in:\n' +
    'npm ERR!     C:\\Users\\l.nardi\\scoop\\persist\\nodejs-lts\\cache\\_logs\\2021-12-29T09_37_57_618Z-debug-0.log\n',
  extra: undefined
}

The offending line ("tail: invalid option -- 1") looks to be this one in the package-build-stats library.

What do you think?
Should I open an issue there?

@rafgraph
Copy link
Owner

Yeah that looks like an upstream error. Please open an issue with package-build-stats. Also, what version of node and npm are you using? I'm using node v14.17 and npm v7.12 and I haven't hit this error.

@LucaBlackDragon
Copy link
Author

Sorry I forgot to mention that:
node v16.13.1 (LTS)
npm v8.3.0
Anyway, I'll open an issue on package-build-stats, thanks!

@rafgraph
Copy link
Owner

I think the node/npm version is causing it, which is unfortunate because you're using LTS. It doesn't look like package-build-stats is maintained too often, so I'll have to remove it from rollpkg if it's not fixed because it should work with LTS.

I'm going to reopen this issue in case other people get this error. If you could link to the package-build-stats issue here that would be great, thanks.

@LucaBlackDragon
Copy link
Author

@rafgraph issue opened

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

2 participants