-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
tns run android
fails with private npm registry
#4283
Comments
The previous versions of NativeScript were happy to use |
Can you send us the full log from |
Seems like we're facing the same issue - I cannot build anymore the android app after upgrading to 5.0+! When I run
npm install works fine.. |
I can confirm this issue, also validated with Node 10.15.0 and NPM 6.5.0 . @Fatme the output of that command is pretty long ad contains too many details to anonymize, can I supply it on another channel? It appears that indeed |
Hey @madmas , you can upload your files somewhere and share them with me in the NativeScript Community Slack - my username is |
Done ;-) |
Hey @madmas, thanks for the provided information. It looks like some of your dependencies are not built for Android and during build operation CLI tries to build .aar file for each of them. During the process of building the .aar file for a plugin, CLI tries to get information which gradle versions to use, based on your version of One way to workaround this is to prebuilt the .aar on your own in node_modules. Another way is to change this line in your local CLI installation: nativescript-cli/lib/node-package-manager.ts Line 111 in f83c95e
From: To: In case you are able to access the official registry, CLI will use it to get the data for We'll investigate this issue further and update this issue once we have more information. |
@Fatme I think you will find that the more appropriate way to do this is to leverage the existing For example, if you call
I insist that you remove all manual circumventing of |
I totally agree we shouldn't use any manual circumventing of Actually our first implementation was with We're working on investigating the issue and searching for a solution. We''ll update you when we have more information. |
@Fatme I would be curious to know which versions of :~/npmtest$ node_modules/.bin/npm --version
3.3.6
:~/npmtest$ node_modules/.bin/npm view tns-android@latest gradle
{ version: '4.10.2', android: '3.2.1' }
:~/npmtest$ node_modules/.bin/npm view tns-android@4.2 gradle
{ version: '4.4', android: '3.1.3' } |
…rder to fix the problems when private npm registry is configured Rel to #4283
…rder to fix the problems when private npm registry is configured Rel to #4283
Hey @facetious, @madmas, We discussed the problem and based on your input we decided to use |
@Fatme thanks a lot for the fix, it works like a charm for us! looking forward to the 5.2 release :) |
tns run android
fails with private npm registry
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):tns --version
: 5.1.0tns info
:✔ Component nativescript has 5.1.0 version and is up to date.
✔ Component tns-core-modules has 5.1.1 version and is up to date.
✔ Component tns-android has 5.1.0 version and is up to date.
Describe the bug
The first step in using a private npm mirror was completed here: #3866
The next step (properly authenticating) was not completed. As a result, our private mirror (which requires authentication that is specified in the
.npmrc
file) is not successfully reachable.To Reproduce
Set up a private npm server that requires authentication. Place your authentication credentials in
.npmrc
(auth-always=true, email= ..., _auth= ...
).tns build android --bundle --env.aot --env.uglify --log trace
Observe:
Expected behavior
It builds.
Sample project
Any project with 5.0 or 5.1 will do.
The text was updated successfully, but these errors were encountered: