cli: au run fails when the app wasn't generated by that PC.
I’m submitting a bug report
- Library Version: major
Please tell us about your environment:
- Operating System: Windows [10]
- Node Version: 4.4.7
- NPM Version: 3.8.9
- Language: ESNext
Current behavior:
When uploading a repo to GitHub, I ignore node_modules as usual.
When pulling the project, followed by:
npm install && au run
It will lead with an error and won’t run. The only way I found to get the app to work is by using au new
to generate a new project and then replacing the SRC files…
- What is the expected behavior? To run
- What is the motivation / use case for changing the behavior? logic
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 46 (13 by maintainers)
@EisenbergEffect People are still running into issues here so i think this should be re-oppened. The NPM issue was fixed by the latest NPM. However moving from Ubuntu -> Windows, Mac -> Windows or the opposite causes issues. As seen above.
This is mainly caused by aurelia.json’s not being able to read ‘/’ in windows, and ’ \ \ ’ in Mac/Linux.
@jaeko44 I’m afraid it didn’t work:
and I still get exactly the same errors. Am I doing something wrong? Is there any other idea?
Meantime, I’ll try next to install in a clean directory to see if that will make any difference.
[later]
Yes, a clean installation worked! So here’s a possible checklist of things currently necessary when moving from Mac to Win:
Things noted:
Pull this project down on you computer (Step 4).
au new
-> name:au-test
->1
->enter
->enter
au run --env dev --watch
a. App works. I can see welcome athttp://localhost:9000
git clone git@github.com:TylerJPresley/au-test.git
b.npm install
c.au run --env dev --watch
d. openedhttp://localhost:9000
Link to that line: https://github.com/TylerJPresley/au-test/blob/master/scripts/vendor-bundle.js#L11052