I never used Yeoman, did everything by the Microsoft SPFx book (and now feel stupid):

When in the command prompt it won't recognize my device and keeps telling me " 'android-sdk-windows' is not recognized as an internal or external command, operable program or batch file. " and when I try to enter softkeys it says "failed to find file:/system/bin/su. SoftKeys may not function.

Using the suggested Cmder for windows

Note: my other Node stuff in Webstorm 2016.2 runs just fine

Command:

Works fine:

Seems to be fine:

Dcrpomo is not recognized as an internal or external command manager

When I start the HelloWord example

The command

Clearly doesn't work:

I know it is a simple question, just getting ahead before the jQuery copy/pasters get into the game (and I am too lazy to fix it myself)

tnx

Danny '365CSI' EngelmanDanny '365CSI' Engelman
19.2k5 gold badges27 silver badges68 bronze badges
File

3 Answers

  1. install the latest version of node
  2. install the latest version of npm: npm i -g npm@next
  3. run the following in your cmd window or commander window:

these commands set will install some missing modules that were not installed when you followed the doc on github(and no you weren't stupid)

once you run the above, you can run the yo command to create your helloworld

$ yo @microsoft/generator-sharepoint

and you will have your hello world app.... (what a way to go for a Hello World)

PS: you don't need commander, the CMD will do just fine, just make sure the node path is included in the %PATH% variable and can be found by gulp.

:)

LuisCarlosLuisCarlos

Most likely cause is the NPM folder is missing from the PATH declaration, so it can not find the commands installed in the NPM folder

For Windows:

Check if everything is correctly installed

Execute in a command prompt:

This should list the available commands:

Execute the Yeoman SharePoint Generator

add NPM folder to %PATH%

If you add the npm folder to the PATH you do not have to reference the full path all the time

  • Go to My Computer + Right Click 'Properties'
  • Advanced System Settings (On the left)
  • Click on Environment Variables
  • Click on Edit
  • Path Add '%appdata%npm;' to the end

    * Click ok and reopen Cmd(r)

Only addition of environment variable 'path' will do in case of a new user logged in to the machine but using the VS installed by other user.Tested and verified inOS - Windows 10.VS -2015.

Danny '365CSI' EngelmanDanny '365CSI' Engelman
19.2k5 gold badges27 silver badges68 bronze badges

Sometimes you need to refresh the PATH. I just open a new command window, which seems to be the simplest way of doing this.

Dcrpomo Is Not Recognized As An Internal Or External Command Examples

SPDoctorSPDoctor

Unzip Is Not Recognized As An Internal Or External Command Operable Program Or Batch File

9,5032 gold badges29 silver badges60 bronze badges

Dsquery Is Not Recognized As An Internal Or External Command

Not the answer you're looking for? Browse other questions tagged spfx-tooling or ask your own question.

Coments are closed
Scroll to top