Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

npm does not support Node.js v0.10.37 leads to a has no method 'toLowerCase' error #353

Open
MiquelAdell opened this issue May 16, 2017 · 3 comments

Comments

@MiquelAdell
Copy link

MiquelAdell commented May 16, 2017

Hi,

I think I have both vv and node.js updated to the latest version (on a Mac using homebrew as the install method).

If I try to create a new site I get:

==> default: Linked custom apt sources
==> default: No apt packages to install.
==> default: npm                                        <---- red messages start here
==> default:
==> default: WARN
==> default:
==> default: npm
==> default:  npm does not support Node.js v0.10.37
==> default: npm
==> default:
==> default: WARN
==> default:
==> default: npm
==> default:  You should probably upgrade to a newer version of node as we
==> default: npm
==> default:
==> default: WARN
==> default:
==> default: npm
==> default:  can't make any promises that npm will work with this version.
==> default: npm
==> default:
==> default: WARN
==> default:
==> default: npm
==> default:  You can find the latest version at https://nodejs.org/
==> default: npm
==> default: ERR!
==> default:  Object function (err) {
==> default: npm ERR!         if (err) return cb(err)
==> default: npm ERR!
==> default:          fs.fsync(fd, function (err) {
==> default: npm ERR!           if (err) return cb(err)
==> default: npm ERR!           fs.close(fd, cb)
==> default: npm ERR!         })
==> default: npm ERR!
==> default:        } has no method 'toLowerCase'                  <--- here it gets stuck 

No matter what I do.
It gets stuck there and If I cancel via cmd+c i get the following message stuck forever:

^C==> default: Waiting for cleanup before exiting...

My relevant versions are:

node: v7.10.0
npm: 4.6.1
vv: 1.12

If there is something else that need updating I don't know what it could be.

Thanks!

@ghost
Copy link

ghost commented May 16, 2017

This just started for me as well.

I fixed this with

  1. vagrant ssh
  2. curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  3. sudo apt-get install -y nodejs

@MiquelAdell
Copy link
Author

Well...

It did work for me to.

Of course vagrant has it's own node and npm, silly me.

I guess this confirms that there is some issue there.

Thanks!

@muhammadandykmaulana
Copy link

muhammadandykmaulana commented Jun 21, 2017

When i execute with ur solution @danieljjy , when i install something package using npm, e.g: npm install mqtt. I get error bash: /usr/local/bin/npm: No such file or directory. And when i check npm -v, i get bash: /usr/local/bin/npm: No such file or directory so. How can i fix it? thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants