question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

metro 0.25.1 can not be used from npm

See original GitHub issue

What is the current behavior? Can’t install metro@0.25.1 or have it as dependency.

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.

mkdir fuck-metro && cd fuck-metro
npm init # all answers default
npm i -P metro@0.25.1 
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:babylon@^7.0.0-beta

What is the expected behavior? Package metro should successfully be installed into node_modules and recorded in package.json

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system. OS: macOS Sierra 10.12.6 (16G1212)

npm --versions
{ 'fuck-metro': '1.0.0',
  npm: '5.6.0',
  ares: '1.13.0',
  cldr: '32.0.1',
  http_parser: '2.7.0',
  icu: '60.2',
  modules: '59',
  napi: '2',
  nghttp2: '1.29.0',
  node: '9.5.0',
  openssl: '1.0.2n',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.46-node.18',
  zlib: '1.2.11' }

Error exactly here: packages/metro/package.json and it still in master.

And in case one can’t find it, I provide link to documentation of package.json format: https://docs.npmjs.com/files/package.json#urls-as-dependencies

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vovkasmcommented, Feb 24, 2018

@jeanlauliac Looks like solution, should I create pull request?

1reaction
jeanlauliaccommented, Feb 24, 2018

A way to fix this, I think, is to create a published package ex. metro-babylon7 that itself depends on babylon@7 and re-export it verbatim, then depend on babylon@6 and metro-babylon7 from metro.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
In Metro 0.25.1 onwards, the packager will resolve the fixture version of react-native-vector-icons , instead of resolving the actual ...
Read more >
metro - npm
Metro. The JavaScript bundler for React Native. Fast: We aim for sub-second reload cycles, fast startup and quick bundling speeds.
Read more >
Starting Metro error - NPM React Native App - Stack Overflow
But I got an error when running with npm start. I can't run the app at all. I did what the Readme.md said...
Read more >
Queueing Problems with Solutions - DE IK IRH
patterns are quite common, although random service time is not. The model is often used as we used it in Example 5.3.1, that...
Read more >
Getting Started | Metro - Meta Open Source
Install Metro using npm: ... npm install --save-dev metro metro-core ... its third parameter when the request could not be handled by Metro....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found