-
Notifications
You must be signed in to change notification settings - Fork 74
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
Can't install node-rfc, running out of memory. Error 134 #166
Comments
The installation does not require much RAM. The problem is apparently something else but can't reproduce on plain Windows. Maybe this can help: https://stackoverflow.com/questions/42308879/how-to-solve-npm-error-npm-err-code-elifecycle ? |
None of those helped me either... Maybe I should try to do a clean installation of node and npm |
Comparing your log with the log of successful installation on Windows, I see in your log that node-red admin somehow interferes with the installation. How the The installation command is You could eventually try:
$ cd test
$ npm init -y
$ npm i --save --timing node-rfc
|
Hello again, Now I'm running into another issue. Apparently, CMake is unable to rename (or move) a file. I tried running cmd both as normal and as admin user, both didn't work. Following you see the console output. The npm doesn't look interesting, since everything worked there. Do you have any idea what I could do here? `Not searching for unused variables given on the command line.
to
because: No such file or directory SAP NWRFC SDK: npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
For some reason the build from source is triggered on your Windows platform. It should not happen on Windows, the pre-compiled binary should be fetched from The build from source requires NodeJS include headers, which are not a part of the node runtime on Windows. The CMake tries to download them and something gets wrong during that process. Does the directory C:> npm -g prefix
C:> npx envinfo To get around this download and rename issue, you can try:
/Downloads/node-v14.8.0
└── include
└── node
Now the CMake should take the headers from that location and not try to download and rename. |
Thank you for your answer, following the outputs: D:\RFC-Test>npx envinfo System: The changes you suggested seem to have worked. `info CMD BUILD Checking Build System I'd be very thankful for even more help |
The log shows few errors:
|
To the second question: To the first question, I am not able to only install npm at one location. Apparently, the one in Appdata is the "global" (-g) npm and the other one is the local instance. Unfortunately I seem to need the global instance to run node-red. |
Using the node version manager helps avoid exactly these collisions. It is described in node-red documentation: Uninstal everything and ensure no node or npm are on PATH. Install the nvm and using nvm install the node version required for node-red. Then install the node-red using the 2nd (nvm) alternative method, as described in node-red documentation. |
Soo, I installed nvm and got node-red working like a charm, but am still running into the same problem as before. |
Which problem exactly is happening now, could you please post the log? If include files are not found again, the cause is the bug in In that case, you can wait for the next release, including this fix or download and unpack the node-rfc repository in some local folder (fix is already in master) and install it from there, not from npm. Something like: PS C:\test> Invoke-WebRequest https://github.com/SAP/node-rfc/archive/master.zip -OutFile C:\temp\noderfc-master
# unpack the zip
PS C:\test> npm install C:\temp\noderfc-master |
That seems to have fixed it! Thanks again for all the effort |
Glad to hear. Can you confirm if the node-rfc works well with node-red on Windows ? Eventually comment in #161, if you see something what could eventually help? |
Unfortunately I will stop working on this topic tomorrow, since I'm leaving the company, maybe my colleague will comment or I find the time to work on it in my free time |
Ok and thanks anyway. Please feel free to close the issue if you want and we can reopen if any updates. |
Hi @bsrdjan how are you doing ? I'm basically facing the same problem from GutberletJonas, what i am supposed to do ? open a new ticket request, or keep here ? Thanks a lot. |
Hi @vinibiscolla, the thread is bit older, could you please let me know what is exactly the issue and on which platform it occurs? The node-red platform is not supported, see #161 (comment). Kind regards, Srdjan |
Hello everyone,
I'm trying to install node-rfc for about two weeks now and keep failing, so I guess I need your help.
A little bit of background:
I'm working on a enterprise server, behind a proxy. I'm using jfrog artifactory to use npm.
my node version is: 14.8.0
npm version: 6.14.7
I got the installation so far to show:
`C:>npm install node-rfc
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported
npm notice created a lockfile as package-lock.json. You should commit this file.
added 252 packages from 228 contributors in 30.944s
5 packages are looking for funding
run
npm fund
for detailsprebuild-install WARN install getaddrinfo ENOTFOUND github.com
[
'C:\Program Files\nodejs\node.exe',
'C:\node_modules\node-rfc\node_modules\cmake-js\bin\cmake-js',
'rebuild'
]
info TOOL Using Visual Studio 16 2019 generator.
info CMD CLEAN
info RUN cmake -E remove_directory "C:\node_modules\node-rfc\build"
info CMD CONFIGURE`
The installation takes really long (>20mins) and then aborts with attached error output.
Apparently it is a memory allocation error, so I increased the RAM of the server and granted node more memory with
set NODE_OPTIONS=--max_old_space_size=4096
This only led to the installation consuming 4 GB instead of 2GB and taking twice as long before aborting with the same error.
So I guess there must be something else off.
Attached is the complete log. Thank you in advance!
2020-08-19T14_40_33_018Z-debug.log
The text was updated successfully, but these errors were encountered: