tenforce / ember-mu-application-generator

Generator for a full browseable CRUD front-end for a mu-cl-resources back-end.
MIT License
0 stars 3 forks source link

Issues when running "ember generate ember-mu-application-generator" #14

Open asjongers opened 6 years ago

asjongers commented 6 years ago

When adding the generator to a new project (using Ember-cli 3.1.4), I run into the following issue:

updating router
  add route route-not-found
  install package jquery-datetimepicker
  install addon ember-power-select
  install addon ember-datetimepicker
  install addon ember-changeset
Command failed: npm install --save-dev --loglevel error ember-changeset
npm WARN deprecated ember-cli-babel@5.2.8: ember-cli-babel 5.x has been deprecated. Please upgrade to at least ember-cli-babel 6.6.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN checkPermissions Missing write access to /home/arnaud/Documents/git/subject-pages/node_modules/asn1
npm WARN checkPermissions Missing write access to /home/arnaud/Documents/git/subject-pages/node_modules/assert-plus
...
npm WARN checkPermissions Missing write access to /home/arnaud/Documents/git/subject-pages/node_modules/babel-plugin-proto-to-assign/node_modules
npm ERR! path /home/arnaud/Documents/git/subject-pages/node_modules/asn1
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/home/arnaud/Documents/git/subject-pages/node_modules/asn1'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/arnaud/.npm/_logs/2018-05-23T08_02_43_519Z-debug.log

I then tried to install the needed dependencies manually running:

ember install ember-power-select
ember install ember-changeset
ember install ember-datetimepicker

But it would complain about a missing npm package (the generator):

Missing npm packages: 
Package: ember-mu-application-generator
  * Specified: git+https://github.com/tenforce/ember-mu-application-generator.git
  * Installed: (not installed)

Run `npm install` to install missing dependencies.

Stack Trace and Error Report: /tmp/error.dump.c8b841b57cf3b46ce087de3ab332988d.log
An error occurred in the constructor for ember-cli-dependency-checker at /home/arnaud/Documents/git/subject-pages/node_modules/ember-cli-dependency-checker

Doing npm install solved that, I could then install the needed dependencies and because running ember generate ember-mu-application-generator already installed the needed files (components and so on), I could just run "ember serve" and get something working. However, as you can imagine, this probably needs some looking into.