ActionHero Generate and Yarn don't play nicely
See original GitHub issueDescription of Issue
- ActionHero Version:
^16.0.0
- Node.js Version:
v7.2.0
- Operating System
Ubuntu 16
Steps to reproduce your error
- Make a new actionhero project with
./node_modules/.bin/actionhero generate
npm start
And I’ve got:
npm ERR! Linux 4.4.0-53-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.2.0
npm ERR! npm v3.10.9
npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Actionhero Tutorial - GitHub
Created: June 22, 2013; Updated: Jan 01, 2022. Node.js CI. This guide will walk you through the creation of the application in this...
Read more >Web Server - actionHero.js
If the client doesn't specify an action via a param, and the base route isn't a named action, the action will attempt to...
Read more >Actionhero
The actionhero framework is one of the fastest ways to get started with a REST API - Routes, Versions, Testing and Translation tool...
Read more >Actions - actionHero.js
Actionhero supports multiple versions of the same action. This will allow you to support actions/routes of the same name with upgraded functionality.
Read more >Testing - Actionhero
Actionhero provides test helpers so that you may try your actions and tasks within a headless environment. We do this by including a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I personally don’t like 1 or 2.
actionhero generate
is a new project generator. If you already have apackage.json
, you aren’t running the generator to create a new project! To that end, the generator does what it can, and won’t touch any of your existing files.If you have ActionHero installed globally, #2 sort of already works… you just need to be inside your new project directory.
You should never install any node package globally ever under any circumstances. What happens when versions change and separate projects you have want separate versions? But… that’s just my opinion.
This would be a great thing to discuss in our slack room. http://slack.actionherojs.com/
Closing, because this isn’t really about Yarn, but about global packages and overwriting things.