Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawn npm ENOENT when running instructions for creating Auth0 extension on Windows #178

Open
hsluoyz opened this issue Feb 8, 2018 · 0 comments

Comments

@hsluoyz
Copy link

hsluoyz commented Feb 8, 2018

I want to develop my own Auth0 extension. In https://manage.auth0.com/#/extensions, I clicked the +CREATE EXTENSION button. It said: Want to write your own extension? Check out this command line tool. I clicked the link. It gave me the Development Instructions as follows:

  1. Install wt (requires Node.js)
$ npm install -g wt-cli
  1. Setup wt
$ wt init --container "xxx" --url "https://sandbox.it.auth0.com" --token "xxx" -p "xxx-gallery"
  1. Install wt-gallery
$ npm install -g wt-gallery-cli
  1. Scaffold a basic extension
$ wt-gallery scaffold sample
  1. Deploy your gallery extension
$ cd sample && npm run bundle 
$ wt create ./build/bundle.js --name extension --param xxx="xxx" --param xxx="1.0.0"

When I run the step 4, I encountered the error:

C:\aaa>wt-gallery scaffold sample

[1] Simple Application
[2] React Application
[3] Cron Job

Which type of application do you want to create? 1
Do you want to install dependencies? [y/n]: y
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

C:\aaa>

I'm using a Windows 10 x64 OS, and NodeJS 8.9.4 LTS. The shell is an administrator CMD.

Can anyone tell me how to fix it? Thanks.

@hsluoyz hsluoyz changed the title Encountered Error: spawn npm ENOENT when running instructions for creating Auth0 extension Error: spawn npm ENOENT when running instructions for creating Auth0 extension on Windows Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant