OfficeDev / generator-office

Yeoman generator for building Microsoft Office related projects.
https://www.npmjs.com/package/generator-office
MIT License
825 stars 208 forks source link

Custom functions option just "copies" the template. Doesn't create a project. #703

Closed Rick-Kirkham closed 2 years ago

Rick-Kirkham commented 2 years ago

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

Expected behavior

Choosing the Custom Functions option in Yo Office creates an Excel custom functions project.

Current behavior

The project is not created. Instead, it appears hat the template for the project type is just copied into the folder where the project should be. See screenshot. image

Steps to Reproduce

  1. Follow the steps in the quickstart: https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-custom-functions-quickstart?tabs=excel-windows
  2. A project named "starcount" should be created. But it isn't. See screenshot.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets, screenshots or code samples here.

millerds commented 2 years ago

@Rick-Kirkham, if do step one in the document I get the startcount project as expected, I don't have the subfolder you show in the screen shot.

Rick-Kirkham commented 2 years ago

@millerds ??? This is bizarre. What version of node and npm are you using?

millerds commented 2 years ago

Node v16.13.0 Npm v8.1.1 yo v4.3.0 generator-office v1.8.1

Rick-Kirkham commented 2 years ago

@millerds I Partly diagnosed this: When I run npm install -g yo generator-office, it runs without error, but I seem to still be on version 1.3. I've even tried npm install -g yo generator-office@1.8.1. It's just not overwriting any files. Is there a trick to updating office-generator?

If I delete the \generator-office folder from the global \node-modules, will that get rid of all trace of it? Or does installation create registry entries or other artifacts somewhere?

Rick-Kirkham commented 2 years ago

I finally got it uninstalled and reinstalled. And I've created a project successfully. Weird thing though. If I try to create a project in an Admin Command Prompt, I get a permission error. But it works, if I'm in a non-elevated command prompt. Seems backwards, doesn't it?