-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Try to add a static library by using plugin in nativescript Could not install from node_modules/nativescript-plugin as it does not contain a package.json file #3035
Comments
@priyangamani please follow the issue template when report issues. We would like to know:
|
@dtopuzov (Try to add a static library for ios) node version:v8.2.1 Plugin structure For Ios:-(By using a static libraries) And in package.json:
After that i tried to add plugin by using this command
|
Unfortunately with The options are:
Can you please try one of them and let us know if you still experience the issue? |
*I tried node version v4.4.4 & npm version 2.15.1 but still i got a error*
My Comment File(Error File)
Intellects-MBP:~ macadmin$ node -v
v4.4.4
Intellects-MBP:~ macadmin$ npm -v
2.15.1
Intellects-MBP:~ macadmin$ cd HelloWorld/
Intellects-MBP:HelloWorld macadmin$ tns plugin add ../nativescript-eghlpayment
```
*Support for Node.js ^4.0.0 is deprecated and will be removed in the next
release of NativeScript. Please, upgrade to the latest Node.js LTS
version. *
npm ERR! addLocal Could not install /Users/macadmin/nativescript-payment
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
"../nativescript-payment" "--save"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! path /Users/macadmin/nativescript-payment
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open
'/Users/macadmin/nativescript-payment'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/macadmin/HelloWorld/npm-debug.log
*Command npm install ../nativescript-payment --save failed with exit code
254*
*# plugin add*
┌─────────┬───────────────────────────┐
│* Usage *│* Synopsis *│
│ General │ $ tns plugin add <Plugin> │
└─────────┴───────────────────────────┘
Installs the specified plugin and any packages that it depends on.
*### Attributes*
* <Plugin> is a valid NativeScript plugin, specified by any of the
following.
* A <Name> or <Name>@<Version> where <Name> is the name of a plugin
that is published in the npm registry and <Version> is a valid version of
this plugin.
* A <Local Path> to the directory which contains the plugin,
including its package.json file.
* A <Local Path> to a .tar.gz archive containing a directory with
the plugin and its package.json file.
* A <URL> which resolves to a .tar.gz archive containing a
directory with the plugin and its package.json file.
* A <git Remote URL> which resolves to a .tar.gz archive containing
a directory with the plugin and its package.json file.
```
|
In this case CLI says:
So I suggest installing
What
So you need |
Hi @priyangamani Note that |
Dear friend, we, the rest of the NativeScript community really
appreciate your feedback! While we are doing all we can to take care of every
issue, sometimes we get overwhelmed. Because of that, we will consider issues
that are not constructive or problems that cannot be reproduced "dead".
Additionally, we will treat feature requests or bug reports with unanswered
questions regarding the behavior/reproduction for more than 20 days "dead". All
"dead" issues will get closed.
Please, provide the details below:
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Which platform(s) does your issue occur on?
iOS/Android/Both
Please provide the following version numbers that your issue occurs with:
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project)package.json
file of yourproject)
Please tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
The text was updated successfully, but these errors were encountered: