-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm start fail for node 8.0.0 and npm 5.0.1 fresh install #233
Comments
I have same issue with node v8 on Mac OS Edit : works with node v7.10 |
Hi! Thanks so much for the report! This appears to be an issue with npm5, as I'm able to start the development server via yarn. We'll try to identify a resolution soon! In the meantime, you can workaround this by installing yarn globally. |
Hello! This is indeed a npm5 issue and I have reported it upstream here: npm/npm#16893 npm5 is currently buggy, I recommend you use npm4 or yarn. (the same recommendation applies for create-react-app). |
Same npm5 bug as #2436 x-ref: npm/npm#16839 |
I have the same issue on win 7 using npm 5.0.1 Looks like there is a problem with the path --> |
@mirosa06 - this is a npm bug as I mentioned above (npm/npm#16893), please use an older version of npm (preferably 4.x) or yarn |
i have the same issue on ubuntu 16.04 using npm 5.0.2 when i want create a new app with create-react-native-app , result is : ERROR: npm 5 is not supported yet It looks like you're using npm 5 which was recently released. Create React Native App doesn't work with npm 5 yet, unfortunately. We You can follow the known issues with npm 5 at: ` |
@sasanazizi - this is a known issue, we say explicitly in README that you cannot use npm5 with create-react-native-app. I don't recommend using npm5 at all right now (as of writing, latest version is 5.0.3) because it is too buggy |
hi
react-native-cli: 2.0.1 |
@13hoop - yarn works but you need to re-create the project or delete node_modules and run |
Is there an easy way to downgrade from npm 5.0.3 to 4 that works with react native? |
@aswerdlow935 - |
I have same problem as @13hoop: |
Downgrading npm to 4.6.1 fixed the issue and I can start a project with yarn start. Looks like the start script is not checking if the project has been build by yarn and just checks for global npm version leading to false negative |
newer versions of npm 5 seem to work, but we don't use them and there may be unexpected bugs as i'm not sure if it's stable yet, so we provide a soft warning. |
Using 'npm install npm@4 -g' solves the problem. |
npm 5.3.0 is stable, but is still not supported. Any idea when this issue is going to be fixed? |
@panuhorsmalahti I suggest you switch to yarn. |
No, I'm happy with npm 5 and I've had zero problems so far. |
npm 5.3.0 has a lot of bugs: npm/npm#16991 this issue isn't going to be fixed in create-react-native-app because it's not a bug in create-react-native-app, it's a bug in npm. |
Hey maintainers & contributors, great work. A few months have passed and since the end of October, Node.js 8.x has entered LTS and all users installing node via the website (a vast majority I would assume) are installing this version. This ships with npm 5. Any new users wanting to get started with (or contribute? support in some way?) As of writing, nodejs 8.9.1 LTS is shipping with npm 5.5.1 (at least on macOS). I haven't researched it very deeply, but are the relevant npm bugs still a no-go for |
Hi There, apparently it's now failing for a fresh install. Any idea how to resolve? I can't seem to find an official documentation. |
@sgb-io as far as I know npm 5's behavior still doesn't work for CRNA. If someone were to come along with a PR adding support there's a good chance of merge, I'd wager, but we're not working actively on it. |
Here's the "new React Native dev" experience. Type React Native into Google. Click getting started. Download the recommended way to get started. Follow the recommended instructions. Get "sorry the current version of node/npm is not supported LOL" message in the console. Find dev comments saying they aren't even working on fixing that. Give up on this degenerate ecosystem altogether. |
How is this still not resolved... |
@brentvatne : As updated in npm/npm#16893, the current version of npm (5.6) seems to correctly handle After switching to npm 5 and running |
What is the fix for this if you are using NPM 5? I mean it's the default installation that comes with Node 8.1.0 when you download it from the site. Is it still recommended to downgrade to NPM 4? |
@jamesqo My workaround is to install a local version of npm4. For example (assuming POSIX-like shell):
Don’t forget that all uses of npm in your shell and subshells will now point to your local npm4 version because of the
When the scripts are updated to not error out on npm-5 and once you can upgrade to a nodejs version that includes at least npm-5.6, this will no longer be an issue. |
Any update on this for npm 5.8? I know March 18 (last comment) isn't that long ago, but I haven't seen any mention of 5.7 or 5.8 in this thread. Does "this will no longer be an issue" mean that everything works properly, or that it mostly works? Thanks! |
Yes, it's still a problem with npm 5.8... I had to use NPM 3 & node 7 |
Is this still an issue with npm 6.0+? |
yes it is. We are using npm 3 and node 6 |
First of all great work.
Description
npm start fails to start packager after a fresh install. See image below.
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
: 0.0.30npm ls react-native
: 0.44.0npm ls expo
: 17.0.0node -v
: 8.0.0npm -v
: 5.0.1yarn --version
: --watchman version
: --The text was updated successfully, but these errors were encountered: