Error executing npx command React-Native init

Asked

Viewed 279 times

-1

Citation

npm ERR! code ENOLOCAL npm ERR! Could not install from "Ricci Appdata Roaming npm-cache_npx 8724" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in: npm ERR! C: Users Vinicius Ricci Appdata Roaming npm-cache_logs 2021-01-04T18_30_42_929Z-debug.log Install for [ 'React-native@latest' ] failed with code 1

1 answer

0

This is a problem in the node that is caused by the blank space in the user’s name between the name and the surname in Windows.

execute the following command after replacing the name with the Windows user name at command prompt with administrator access

npm config set cache "C:\Users\Vinicius~1\AppData\Roaming\npm-cache" --global

Browser other questions tagged

You are not signed in. Login or sign up in order to post.