vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Node version #46

Open FWSimon opened 8 years ago

FWSimon commented 8 years ago

Hi all,

Where can i see what Node version Vueify requires?

on node v4.2.1 it fails with

'browserify' errored after 420 ms
Error: Cannot find module 'vueify'
yyx990803 commented 8 years ago

It should work properly on Node 4. Looks like your vueify isn't even installed. Take a look at your npm list.

FWSimon commented 8 years ago

@yanxyz When im using https://github.com/creationix/nvm to change the version to node 5 it works but if i change to 4.2.1 it keep saying that error, and im sure that module it installed. Hmm

simplesmiler commented 8 years ago

Hit a similar problem, this might be related to npm 3.

chrisvfritz commented 8 years ago

Not sure if this is a similar problem to https://github.com/vuejs-templates/browserify/issues/10. It also looks like https://github.com/vuejs/vueify/issues/93, except the error is:

Cannot find module 'vue-hot-reload-api' from '/home/ubuntu/workspace/browserify-testing/src'

Note the /src at the end, which wasn't in reports for #93. Fortunately, this is easily reproduced in a new cloud9 instance, which defaults to node v4.4.5. I confirmed that the problem remains with both NPM 2.x and 3.x, but is resolved by upgrading to node v5(.11.1 to be exact).

tinnvec commented 8 years ago

I can confirm what @chrisvfritz mentioned, with the addition that the current 'latest' version of node (6.2.2) has a similar problem. Can also confirm everything works as it should with node v5.11.1

gamtiq commented 8 years ago

When trying to use browserify vuejs template on Windows I have got the following error after I do npm run dev:

Error: Cannot find module 'vue-hot-reload-api' from …

I use node v5.5.0 and npm v3.3.12.