-
-
Notifications
You must be signed in to change notification settings - Fork 197
npm install infinite build #297
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
Comments
Hi @Kyozatch , This is really strange. I assume you are working on Windows, am I right? Could you try executing |
Yes you are right, windows. Node 64-bit. This is a part of last ouputs : npm verb tar unpack C:\Users\KNSD1821\AppData\Roaming\npm-cache\debug\2.1.2\pack [email protected] install C:\Users\KNSD1821\myApp\node_modules\nativescript\node_mo |
Hi @Kyozatch |
Bingo. " ...and the script freeze. |
Hm, this is really strange. We've prebuilt node-fibers and the binary win32-x64-v8-3.14 is fine on our side. I have some ideas, that could help. If this fails again, could you try installing 32-bit version of nodejs and see if it will work for you. Also it will be great if you can send the output of Thank you very much for your cooperation. I'm looking forward to hearing from you. |
Cache cleaned doesn't change Should I replace the folder, then ? Thanks you (!) for your assistance. |
I'm not sure how you would replace it and use it in nativescript-cli installation. You can try the following:
If the installation fails, you can try replacing fibers folder inside nativescript's node_modules directory. After that, in nativescript's root folder execute Hope this will make it. As we would like to find out the cause of the issue, could you share your npm version: the output of |
It doesn't work. My npm version : 1.4.28 |
Hi @Kyozatch , I've just found some links related to similar problem with 1.x version of npm. I've also discussed the issue with some of my colleagues and they've mentioned that they've seen such issue (not exactly with fibers installation, but with other node modules). The solution in most of the cases is to update npm. The easiest way here is to try another node version. Could you install nodejs 0.12.0 and try installing nativescript again. I'm looking forward to hearing from you. |
Hi @rosen-vladimirov, Sorry i had to go yesterday. If i downgraded my nodejs version to 0.10.X it's because i thought it was recommanded. The second reason : i have a failure after tns create tnstest : C:\Users\KNSD1821>tns create tnstest Is it a proxy problem ? I don't think so, i already set proxy variable which works with everything. BTW, my outputs after a npm i -g nativescript with nodejs v.0.12.0 : C:\Users\KNSD1821>npm i -g nativescript [email protected] install C:\Users\KNSD1821\AppData\Roaming\npm\node_modules\native
[email protected] install C:\Users\KNSD1821\AppData\Roaming\npm\node_modules\nativescr
[email protected] install C:\Users\KNSD1821\AppData\Roaming\npm\node_modules\nativescr C:\Users\KNSD1821\AppData\Roaming\npm\node_modules\nativescript\node_modules\nod [email protected] install C:\Users\KNSD1821\AppData\Roaming\npm\node_modules\nativescr
[email protected] postinstall C:\Users\KNSD1821\AppData\Roaming\npm\node_modu stdout: Restart your shell to enable command auto-completion. [email protected] C:\Users\KNSD1821\AppData\Roaming\npm\node_modules\nativescri Don't know if it can be useful. EDIT : I tried last night to create a project on an other windows 8.1 with nodejs 0.12.0 and it works.. so the problem is probably this computer. |
Hi @Kyozatch |
That's ok. But then, I tried tns platform add android and got :
Copying template files...
Failed to retrieve data from npm. Please try again a little bit later.. Error: E
rror: connect ECONNREFUSED
It seems that, this problem will always block me somewhere, whatever if i downoald directly the android platform. |
I've checked our code and before installing the required package from npm, we make http call to http://registry.npmjs.org/ to check the latest version of the package. I assume these calls are failing on your side (as npm install outside of nativescript-cli is working for you). Can you try opening http://registry.npmjs.org/tns-android from your browser and see if you receive result (it should be JSON). Maybe there's a problem with your ironport or machine configuration for accessing registry.npmjs.org |
No problems. Page full of json. |
Is it possible that nativescript or npm would have some difficulties when using a corporate's proxy ? |
Hi @Kyozatch, well |
That's exactly the website i consulted to param npm.. Actually I've no more ideas to solve the problem. |
Hi @Kyozatch |
Ok I understand now. When i just try do download this custom package, i have a ERR_CONNECTION_REFUSED. |
Hi @Kyozatch |
Can you try this link - it is from github repo, so it should work this time. |
Rename the following config options: - FIDDLER_HOSTNAME to PROXY_HOSTNAME - PROXY_TO_FIDDLER to USE_PROXY Add PROXY_PORT option to config with default value 8888. Add ConfigBase class which should be used as a base for CLI specific configs. Required for NativeScript/nativescript-cli#297 and NativeScript/nativescript-cli#302
Add config.json file inside new config directory. This file is required in order to allow user specific configurations. Modify nativescript-cli.ts in order to wrap resolving of config and errors inside fiber as the new implementation of config has .wait(). Update common lib, where the following changes are applied: Rename the following config options: - FIDDLER_HOSTNAME to PROXY_HOSTNAME - PROXY_TO_FIDDLER to USE_PROXY Add PROXY_PORT option to config with default value 8888. Add ConfigBase class which should be used as a base for CLI specific configs. Required for #297 and #302
Add config.json file inside new config directory. This file is required in order to allow user specific configurations. Modify nativescript-cli.ts in order to wrap resolving of config and errors inside fiber as the new implementation of config has .wait(). Update common lib, where the following changes are applied: Rename the following config options: - FIDDLER_HOSTNAME to PROXY_HOSTNAME - PROXY_TO_FIDDLER to USE_PROXY Add PROXY_PORT option to config with default value 8888. Add ConfigBase class which should be used as a base for CLI specific configs. Required for #297 and #302
Something like that ? : PROXY_TO_FIDDLER: true, It didn't work for me. |
Add config.json file inside new config directory. This file is required in order to allow user specific configurations. Modify nativescript-cli.ts in order to wrap resolving of config and errors inside fiber as the new implementation of config has .wait(). Update common lib, where the following changes are applied: Rename the following config options: - FIDDLER_HOSTNAME to PROXY_HOSTNAME - PROXY_TO_FIDDLER to USE_PROXY Add PROXY_PORT option to config with default value 8888. Add ConfigBase class which should be used as a base for CLI specific configs. Required for #297 and #302
@Kyozatch, the project I've sent you doesn't respect PROXY_PORT option. I've prepared another package, you can download it from here Thank you very much! |
Very great job, it works !! But now I meet a new kind of error when i want to add an android platform to my new project. C:\Users\KNSD1821\projects\nstest>tns platform add android I'm still with nodejs 0.12.0. Should i downgrade to a 0.10.X ? |
Can you run your command once again by using --log trace: |
And nativescript-cli should work fine with nodejs 0.12, so there's no need to downgrade your version :) |
Here i am : "C:\Users\KNSD1821\projects\nstest>tns platform add android --log trace stderr: stdout: Available Android targets:id: 1 or "android-15" Tag/ABIs : default/armeabi-v7a, default/x86id: 2 or "android-19" Tag/ABIs : default/armeabi-v7a, default/x86id: 3 or "android-21" Tag/ABIs : no ABIs.id: 4 or "Google Inc.:Google APIs:15" Tag/ABIs : default/armeabi-v7aid: 5 or "Google Inc.:Google APIs:19" Tag/ABIs : default/armeabi-v7aid: 6 or "Google Inc.:Google APIs (x86 System Image):19" Tag/ABIs : default/x86id: 7 or "Google Inc.:Google APIs:21" stderr: 'xcopy' n'est pas reconnu en tant que commande interne Android target: android-21 Seems like "xcopy" is an unknow function. (french logs sorry :P ) |
Can you try executing android command on your console, just write |
You're right, $ android doesn't work, but my path looks correct. PATH : ANDROID_HOME : |
Hi @Kyozatch We've checked this error - in android.bat file inside ANDROID_HOME\tools, there's a call to xcopy. It looks like for some reason you do not have xcopy. As this tool is part of Windows installation, I'm not sure how we can help you in this case. On my machine the xcopy is under C:\Windows\System32 directory. Also you can try executing |
I don't know why, but my path to System32 has been delete. So now everything works good ! |
Hi @Kyozatch, |
Hi,
I'm trying to install nativescript but each time (whatever the nodejs version) it fails because i never pass this line (even after 20min..). I currently use nodejs 0.10.36.
"
npm WARN deprecated [email protected]: critical bug fixed in v4.2.0
npm WARN excluding symbolic link docs\stylesheets\hightlight.css -> ../../node_m
odules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs\stylesheets\hightlight.css -> ../../node_m
odules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs\assets\ir_black.css -> ../../node_modules/
highlight.js/src/styles/ir_black.css
npm WARN excluding symbolic link docs\stylesheets\hightlight.css -> ../../node_m
odules/highlight.js/src/styles/solarized_light.css
|
[email protected] install C:\Users\Test\AppData\Roaming\npm\node_modules\native
script\node_modules\fibers
node ./build.js " <---- ...
The text was updated successfully, but these errors were encountered: