Comments (5)
Maybe it was caused by fa0b30e
(#126), as discussed here: #126 (comment)
from install-peerdeps.
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.
From @karlhorky:
@kirlat what does it show you if you run this command? (using the
--dry-run
flag to show the command thatinstall-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.
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.
Seems like #228, #193 and #150 are also related to this.
from install-peerdeps.
Related Issues (20)
- 'request' package needs to be replaced
- ERR spawn npm ENOENT HOT 21
- Fix issue with `child_process.spawn` on Windows
- Move tests to GitHub Actions, add Windows Tests HOT 11
- Feature request: Install from package.json
- Do we have the actual source code for this tool? HOT 3
- Cannot read property 'forEach' of undefined HOT 8
- should not error when there are no peer dependencies; just quietly install the package and move on HOT 3
- ERR: undefined when installing eslint-config-airbnb HOT 7
- --no-registry flag does not work HOT 2
- ERR Unexpected end of JSON input HOT 5
- `@babel/polyfill` warning HOT 3
- Install peer deps using absolute url
- `ERR undefined` with v3.0.3 install-peerdeps HOT 4
- Feature Request: Add ability to ignore some peerDependencies HOT 4
- load package version failure when using yarn@3
- --no-registry not work HOT 1
- install-peerdeps `ERR undefined` on windows HOT 6
- Installing with Yarn via `yarn dlx` or `npx` ends in success with no package.json updates or changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install-peerdeps.