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

Beta package.json postinstall script error #200

Closed
jasonjoh opened this issue Feb 2, 2017 · 3 comments
Closed

Beta package.json postinstall script error #200

jasonjoh opened this issue Feb 2, 2017 · 3 comments

Comments

@jasonjoh
Copy link
Contributor

jasonjoh commented Feb 2, 2017

When running the following command to install:

npm install -g yo generator-office@1.0.0-beta.1

I get the following error:

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "generator-office@1.0.0-beta.1"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! generator-office@1.0.0-beta.1 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the generator-office@1.0.0-beta.1 postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the generator-office package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs generator-office
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls generator-office
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\jasonjoh\Source\Repos\mail-addins\outlook-addin-tutorial\npm-debug.log

I can get around this by adding typings to my install command:

npm install -g typings yo generator-office@1.0.0-beta.1

I believe the fix for this would be to change the postinstall script in package.json to:

"npm install typings"
@jasonjoh
Copy link
Contributor Author

jasonjoh commented Feb 2, 2017

On further research I guess typings install is supposed to be a command that will work if typings is installed. So the fix here may be to just add typings to dependencies in the package.json. It is currently in devDependencies.

@Reezaali
Copy link
Contributor

Reezaali commented Feb 2, 2017

I encountered the same issue. The following also worked for me:

npm install -g typings yo generator-office@1.0.0-beta.1

@beth-panx
Copy link
Member

beth-panx commented Feb 3, 2017

I would like to migrate to use @types instead of typings, which is on a working branch now. Accidentally deleted 'typing' in the readme installation section this morning when I merged a pr. womp... Updated readme for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants