React Native - Object.assign is not a function - node.js

I just installed the project react-native-redux-router from github and I'm trying to have it working.
Although, it looks like I have an issue somewhere as I get the following error.
I tried to reinstall everything I could, but nothing works.
I'm running the latest version of nvm (0.31.0), latest version of node (5.6.0), latest version of npm (3.7.3) and the latest version of react-native-cli (0.1.10) installed globally.
I searched on different forums how to fix the issue and I can't find a solution. Do you have any idea how to fix it?
Thanks.

Related

How to install node-sass and gulp-sass?

I have trouble with installing dependencies in my project. Gulp-sass version is 2.0.4. When I try to install with npm install I'm getting error 404 with node-sass v3.13.1. There is no link for it. I've also tried to insert source file of node-sass v3.13.1 but it's not working. I know the trouble is with link, but is there any way to get around this?
Node-sass is a c++ bridge so particular versions are only supported for some versions of NodeJS. In this case, you are running a new version of Node, that older version node-sass doesn't support. Newer versions also provide better error messages for this.

Latest npm version is not working in Linux

I just updated npm to latest version, but in Linux is not working properly.
When I was trying to install new modules showed errors:
Cannot find module 'asynckit' or
Cannot find module 'reflect-metadata' or
Cannot find module 'har-schema' ...
npm 5.0.1
node 8.0.0
Someone has any idea why it is happening just in Linux (ubuntu 17.04)?
Thank you
npm versions 5.0.0/5.0.1 have bunch of install/update related problems, and I do not advise to use 5.x at this moment, unless you're ready to dig into issues and are able to solve them by your own.
Issue #16833. Issue #16877. Issue #16901. Issue #16907. Etc.
Try this:
apt-get update
Update your system

Can't update from Node v0.10.46 on Mac

I'm having problem's when trying to run my gulp command in the terminal. I've been trying to track down the issue and from what I can tell the issue is that I'm running an outdated version of node.
node -v tells me that I am on v0.10.46, but the Node install downloaded from the website says it's currently on v4.4.7.
The first issue I had was with es6 promises, but I managed to install the es6-polyfill which solved the issue.
Now gulp is throwing an error related to /node_modules/gulp-imagemin/index.js. Specifically the use of const variables. (const path = require('path')).
Based on this thread: https://github.com/sindresorhus/gulp-imagemin/issues/181#issuecomment-219303510 - this issue seems to be an outdated version of node, but no matter what I do it won't upgrade!
I've explored all possible avenues for upgrading Node - using npm, nvm, n, brew and even a local re-install, but everytime it seems to be installing an outdated version.
I've explored the possibility that I'm installing a 32bit version on a 64bit system, but that doesn't seem to be the issue either.
I have absolutely no idea how to progress fixing this issue. I'm trying to build a wordpress website, and no matter what theme I use this error comes back to haunt me!
Help!
EDIT:
Just to add.. in this image (http://imgur.com/a/OzR5Y) you can see the output of me trying to upgrade using N, and then following the David Walsh upgrading method.
I had the same problem and I tried everything from uninstalling it by this instructions without any result. But maybe you have in your computer a management like nvm installed, just try this:
which node
And then if the respond of that is something like:
/Users/MYUSER/.nvm/v0.10.46/bin/node
That's the problem, so you can solve this by uninstalling nvm and then install Node.js normally or just keep using nvm

Ionic installation a file is always missing

I have installed node, cordova 6.1.1, python 2.7.
I've been trying to install ionic for the past 3 hours on windows, but I get error after error. A file is always missing. I've uninstalled it a couple of times, I even deleted the whole node_modules inside npm, but nothing will make it work. How can I solve this?
The first 4 times I used the latest version of node.js v6.2.0. To make it work I uninstalled it and used v4.4.4 LTS. If you're having the same problem, I hope this helps.

Unable to install Cordova with npm

Installing Cordova with Nodejs, i got this error :
npm WARN installMany normalize-package-data was bundled with npm#1.3.4, but bund
led package wasn't found in unpacked tree.
The error comes after the command npm install -g cordova
What can be the solution please ?
Thnx
I have solved this issue, so i present here what i did to solve it for anyone who may have the same problem :
I thought about reinstalling Nodejs. So i removed it and installed it again but nothing worked, then i took an installation directory of Nodejs in another computer (which works fine) and copied it to my computer and referenced it in the path environnement variable and every thing worked fine !!
The problem is with cordova and the version of the node.js. The latest version for Node.js (as of today for windows) is problematic with cordova. I went back a few versions and Node-v0-10-36-stable is working fine so far. Other versions may also work but I can only speak for v0.10.36.
http://blog.nodejs.org/2015/01/26/node-v0-10-36-stable/

Resources