-
Notifications
You must be signed in to change notification settings - Fork 27
Following Get Started tutorial fails #10
Comments
Issue happens only in windows, where tools is unusable. You could check if spawning happens in windows and use 'npm.cmd' instead of 'npm'. |
@roosi have you tried with bash on windows? Should be ok here, we currently don't officially have support for windows shell yet. |
This problem was solved on version 1.0.5 that is published on npm. You only need to update to that version to solve the problem. |
Same thing happens with newer version too.
|
Hi, even i am having the same issue. |
This is a continuation of the issues I had in 1.0.6 Monday. I updated to 1.0.7 and this is new My environment is: This is what I get when I run
|
I am using npm command prompt. Still the same issue. After run awsmobile run: |
The issue is that windows 10 can not resolve npm.cmd ... I don't have a solution for it though. |
@chessIthaca
Launched in browser and it works for me. Hope it helps. |
@ysfyong thanks for this. It worked for me. I shortened up the commands a bit and ran them like this: First open cmd/powershell in app-dir/client |
@chessIthaca I don't think its Windows 10 not resolving npm.cmd. I can call npm.cmd in a new cmd/powershell window it complains that I didn't issue a command for npm to execute when I called it. I believe that its rooted at the child_process.spawn not getting PATHEXT passed to it, or being passed in empty so when it gets npm.cmd it goes off into the weeds. |
To follow up one work around proposed here is to use cross-spawn: nodejs/node#6671 |
I used npm.cmd run-script build and npm.cmd run-script start it works for me |
I'm using windows 10, changing project-config.json (awsmobilejs/.awsmobile/info) changed npm to npm.cmd as below worked for me { |
Following Get Started tutorial ends failure when running awsmobile run
The text was updated successfully, but these errors were encountered: