Giter Site home page Giter Site logo

Comments (5)

karlhorky avatar karlhorky commented on June 28, 2024 1

Maybe it was caused by fa0b30e (#126), as discussed here: #126 (comment)

from install-peerdeps.

kirlat avatar kirlat commented on June 28, 2024 1

I've checked the logs and the problem seems to be that the package whose dependencies to be installed, alpheios-node-build, is not in the npm registry. It is installed locally (i.e. exist in ./node_modules/alpheios-node_build) and this seems to cause the issue:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'info',
1 verbose cli   'alpheios-node-build@latest',
1 verbose cli   '--json'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session d488d407d2f19391
5 http fetch GET 404 https://registry.npmjs.org/alpheios-node-build 339ms
6 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/alpheios-node-build - Not found
6 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:114:15
6 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:93:5)
7 verbose statusCode 404
8 verbose pkgid alpheios-node-build@latest
9 verbose cwd C:\uds\projects\alpheios\alpheios-core
10 verbose Windows_NT 10.0.19042
11 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "info" "alpheios-node-build@latest" "--json"
12 verbose node v14.8.0
13 verbose npm  v6.14.7
14 error code E404
15 error 404 'alpheios-node-build' is not in the npm registry.
15 error 404 You should bug the author to publish it
15 error 404 (or use the name yourself!)
15 error 404
15 error 404 Note that you can also install from a
15 error 404 tarball, folder, http url, or git url.
16 error 404
17 error 404 'alpheios-node-build@latest' is not in the npm registry.
18 error 404 You should bug the author to publish it (or use the name yourself!)
19 error 404 Note that you can also install from a
20 error 404 tarball, folder, http url, or git url.
21 verbose exit [ 1, true ]

This, however works with v2.0.2, npx [email protected] alpheios-node-build --dev --only-peers gets the dependencies installed.

Another thing I've noticed. If to remove the package whose dependencies need to be installed (i.e. alpheios-node-build) and run v2.0.2 (npx [email protected] alpheios-node-build --dev --only-peers) it recognizes the fact that the package is missing and provides the relevant error message:
ERR That package doesn't exist. Did you mean to specify a custom registry?

v3.0.3, however, just prints ERR undefined in this case.

If to run v3.0..3 against the package that IS in the registry (npx install-peerdeps eslint-config-airbnb --dev --only-peers ), it works fine.

So probably something was changed around how locally installed packages are handled.

from install-peerdeps.

nathanhleung avatar nathanhleung commented on June 28, 2024

From @karlhorky:

@kirlat what does it show you if you run this command? (using the --dry-run flag to show the command that install-peerdeps will run internally)

npx install-peerdeps alpheios-node-build --dev --only-peers --dry-run

In addition, were there any NPM error log files created? Could you paste those logs here if so?

from install-peerdeps.

kirlat avatar kirlat commented on June 28, 2024

If I execute npx install-peerdeps alpheios-node-build --dev --only-peers --dry-run (it runs version 3.0.3) it outputs the following

install-peerdeps v3.0.3
ERR undefined

the same output is produced for v3.0.2 except the different version in the output.

I can't find where logs for npx are, they are not in any obvious places, will try to it figure out.

If I'm installing the install-peerdeps globally (with npm i -g) I'm getting the same error output.

from install-peerdeps.

karlhorky avatar karlhorky commented on June 28, 2024

Seems like #228, #193 and #150 are also related to this.

from install-peerdeps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.