Skip to content
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.

No matching version found for node-api@0.3.0 while npm install on 1_hello_world\node-api #21

Closed
liudonghua123 opened this issue Apr 25, 2018 · 3 comments

Comments

@liudonghua123
Copy link

When I tried the example of 1_hello_world\node-api, I first run npm install, and then it gave me the following errors. I also looked the https://www.npmjs.com/package/node-api, but it seems not this package.

D:\code\node\abi-stable-node-addon-examples\1_hello_world\node-api>npm install
npm WARN npm npm does not support Node.js v10.0.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! code ETARGET
npm ERR! notarget No matching version found for node-api@0.3.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'hello_world'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Liu.D.H\AppData\Roaming\npm-cache\_logs\2018-04-25T05_33_59_261Z-debug.log

@mhdawson
Copy link
Member

Looks like we forgot to delete the node-api directory when renaming a while back. What you want to use is what is in the node-addon-api directory.

@mhdawson
Copy link
Member

PR to cleanup https://github.com/nodejs/abi-stable-node-addon-examples/pull/25/files.

You should be able to use the content of 1_hello_world\node-add-api instead.

@liudonghua123
Copy link
Author

Got that, thanks! ^_^

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

No branches or pull requests

2 participants