Open MarcGodard opened 5 years ago
DoneJS is designed to ONLY be global. However, it sets up projects with local packages so everything should work without the global donejs command. Instead of using “donejs x”, you should be able to use “npm run donejs x”
(It might be “npm run donejs-cli x”
@justinbmeyer Ok I will try that and report once I need it again
No on both counts. npx
works with almost every other tool. It does run donejs
just not when I want to generate a component.
marcgodard@Marcs-MacBook-Pro-3 site-template % npm run donejs generate component
npm ERR! missing script: donejs
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/marcgodard/.npm/_logs/2019-10-12T23_04_29_256Z-debug.log
marcgodard@Marcs-MacBook-Pro-3 site-template % npm run donejs-cli generate component
npm ERR! missing script: donejs-cli
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/marcgodard/.npm/_logs/2019-10-12T23_04_37_386Z-debug.log
marcgodard@Marcs-MacBook-Pro-3 site-template %
I had many issues with global packages and nvm, so I started installing all packages locally with
--save-dev
such as donejs and running them usingnpx
however, for some reason donejs is the only package that doesn't work when doing this.Steps to reproduce:
-g
option (can do--save-dev
)npx donejs
this should work.npx donejs generate component
this will not work. Just freezes.