bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 90 forks source link

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

Open MiquelAdell opened 7 years ago

MiquelAdell commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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