Init-freeze-freeze / freeze without errors

New to respond by working through the UDEMY tutorial on Mac. Node is installed, but when I go to start the project

reactive init initname

terminal output:

This will help you create a new React Native project in / Users / myuserid / projects / projectname Installing the reactive package from npm ...

and it just β€œhangs” there ... seemed frozen or puffing. When I check the monitor, it looks like the terminal is using 0% CPU. There is no indicator (backslash or otherwise) that it is processing.

Inside the project names directory is the package.json file and the node_modules file with a bunch of subfiles.

I saw this post with a similar problem ( https://github.com/facebook/react-native/issues/2806 ), but it doesn't seem like there is a tool. Is there any way to speed this up? How can I find out if he stalled forever? Will this happen during every init project that I do?

I am not in China ... I have fast internet ... and I use NPM 3.3.12

Thanks!

+5
source share
1 answer

I have the same problem and I found the first comment on the question helpful.

In fact, if there is no error, this means that it takes time to load the dependencies.

You can track the download by adding --verbose :

 react-native init projectname --verbose 

You will spend a long period to reach 50% of the load.


However, you may encounter the following error:

npm WARN response-native@0.34.0 requires a peer-to-peer response @ ~ 15.3.1, but none have been installed. npm verb exit [0, true]

If so, check this box .

+2
source

Source: https://habr.com/ru/post/1240210/


All Articles