bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

Getting started part is not working #29

Closed altinselimi closed 6 years ago

altinselimi commented 6 years ago

Hi,

I'm following the instructions from the Getting Started section of the readme, but it fails at the third step.

After cloning repo, and going inside the directory, running node _start.js throws error :

module.js:540
    throw err;
    ^

Error: Cannot find module 'date-fns/format' .....

Tried installing date-fns globally, still same error. Running npm install throws error :

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cypress@2.1.0 postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cypress@2.1.0 postinstall script.

How can I fix this ?

System info: MacOS 10.13.3, NPM v5.6.0, Node v8.9.4

wyrd-code commented 6 years ago

Same thing on Ubuntu 16, NPM v5.3.0, node v8.6.0

jnarowski commented 6 years ago

Did you do npm install first?

chrisvfritz commented 6 years ago

Running npm install or yarn install first will indeed fix it, but I just updated the start script to not rely on any installed dependencies, so it should work even before installing dependencies now.

The Cypress error is something separate though, tracked here. It should only happen if you're installing Cypress as the root user though, so I recommend installing without sudo (which is better anyway, as it's a good idea to avoid running 3rd-party software with root permissions unless absolutely necessary).