Windows Server 2012 Problem (AGAIN)
-
Hello guys.
After 2 years im returned on nodebb with finally the stable version.
I had been to the version 0.6.0 .
Now we are to the version 1.1.2. Wow
For this i I thought to re-install nodebb on my server windows.
Again problems.
I installed Visual Studio 2013 Express and Visual Studio 2015 (FULL- 60 GB ).
I have the usual problem "npm install".
This is the screen.
Thanks a lot for the help. -
This doesn't have the full log. Can you paste everything?
-
This post is deleted!
-
I deleted npm and npm-cache folder in Appdata/Roaming and the folder of Nodebb.
I redid the installation but now not with 1.1.2 but with 1.x.x and now give others errors at npm install.npm ERR! fetch failed https://registry.npmjs.org/mousetrap/-/mousetrap-1.6.0.tgz npm WARN retry will retry, error on last attempt: Error: read ECONNRESET npm ERR! fetch failed https://registry.npmjs.org/csurf/-/csurf-1.9.0.tgz npm WARN retry will retry, error on last attempt: Error: read ECONNRESET npm ERR! fetch failed https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-1.0.0.tgz npm WARN retry will retry, error on last attempt: Error: read ECONNRESET npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\np m-cli.js" "install" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! syscall read npm ERR! network read ECONNRESET npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Administrator\Documents\GitHub\Nodebb\npm-debug.log
-
@Master-Antonio have you tried installing the latest version of Node and npm?
-
-
I installed the version 4.5.0 of node.js with npm 2.15.9 and i think that all is perfect.
Right?npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardso n/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years. npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update t o graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update t o graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. [email protected] node_modules\connect-flash [email protected] node_modules\nodebb-plugin-soundpack-default [email protected] node_modules\connect-ensure-login [email protected] node_modules\ip [email protected] node_modules\underscore [email protected] node_modules\nodemailer-sendmail-transport [email protected] node_modules\socketio-wildcard [email protected] node_modules\semver [email protected] node_modules\async [email protected] node_modules\daemon [email protected] node_modules\mime [email protected] node_modules\nodebb-rewards-essentials [email protected] node_modules\toobusy-js [email protected] node_modules\xregexp [email protected] node_modules\colors [email protected] node_modules\express-useragent [email protected] node_modules\minimist [email protected] node_modules\underscore.deep [email protected] node_modules\string [email protected] node_modules\cookie-parser ├── [email protected] └── [email protected] [email protected] node_modules\passport-local └── [email protected] [email protected] node_modules\serve-favicon ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules\bcryptjs [email protected] node_modules\nodebb-theme-lavender [email protected] node_modules\passport ├── [email protected] └── [email protected] [email protected] node_modules\sitemap └── [email protected] [email protected] node_modules\nodebb-widget-essentials [email protected] node_modules\lru-cache ├── [email protected] └── [email protected] [email protected] node_modules\nodebb-plugin-spam-be-gone ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules\mousetrap [email protected] node_modules\nodebb-plugin-mentions [email protected] node_modules\morgan ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules\connect-redis └── [email protected] ([email protected]) [email protected] node_modules\rss ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules\nodebb-plugin-composer-default └── [email protected] [email protected] node_modules\express-session ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules\mkdirp └── [email protected] [email protected] node_modules\csurf ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\compression ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules\body-parser ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] └── [email protected] ([email protected], [email protected]) [email protected] node_modules\validator [email protected] node_modules\redis ├── [email protected] └── [email protected] [email protected] node_modules\winston ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules\connect-multiparty ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules\express ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\connect-mongo └── [email protected] [email protected] node_modules\nodemailer-smtp-transport ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules\nodemailer ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules\logrotate-stream ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected]) [email protected] node_modules\json-2-csv ├── [email protected] └── [email protected] [email protected] node_modules\socket.io-redis ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules\rimraf └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\postcss ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] [email protected] node_modules\socket.io-client ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], xmlhttpreque [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\prompt ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\socket.io ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\templates.js [email protected] node_modules\html-to-text ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules\nconf ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], string [email protected]) [email protected] node_modules\mocha ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules\grunt ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules\mongodb ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules\uglify-js ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\request ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\jimp ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules\nodebb-theme-vanilla [email protected] node_modules\nodebb-theme-persona [email protected] node_modules\nodebb-plugin-markdown └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\istanbul ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules\nodebb-plugin-dbsearch └── [email protected] ([email protected], [email protected]) [email protected] node_modules\cron └── [email protected] ([email protected]) [email protected] node_modules\chart.js ├── [email protected] ([email protected], [email protected]) └── [email protected] [email protected] node_modules\autoprefixer ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules\less ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules\grunt-contrib-watch ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected] ) ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules\nodebb-plugin-emoji-one ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules\nodebb-plugin-emoji-extended ├── [email protected] └── [email protected]
-
Now i have problem with nodebb.
https://community.nodebb.org/topic/9421/nodebb-dont-work -
Why not use a simple Linux server? Is the support for Mongdb and Node.js good enough for Windows?
-
@Jenkler Simply, because my server is windows.
I cant buy a server linux now ....
-
I would recommend using CoreOS with Docker on Digitalocean
-
@Jenkler said in Windows Server 2012 Problem (AGAIN):
CoreOS
CoreOS? Never used.
My favorite is Ubuntu .... -
You can run Ubuntu inside Docker if you prefer Ubuntu. In my case I use Gentoo. Best is to start with learning CoreOS with Docker.
Or just install Nodejs + MongoDB on Ubuntu server
-
@Jenkler Docker and Windows is a hell. Docker runs on top of a virtualbox which virtualizes the linux kernel, which allows docker containerization. The result of this is that the efficiency is totally lost. Docker on windows works fine for development, but forget about using it in production
I use linux (Debian Jessie) in production and windows (windows 10, "education") for development. Both work fine. I run Mongo and NodeBB on the same VPS, and for the windows development I use mongolab (or whatever it's called now).
@Master-Antonio You may have noticed Windows is icky when it comes to compiling basically anything that is unrelated to Microsoft in any way. Therefore compiling native addons with NodeJS is a hell on Windows. For me it does only work with commandprompt cmd.exe and not with powershell or mingw. I've followed the directions here (search for the "On Windows" bullet, below installing) with option 2. For Visual C++ Build Environment I used the first option.
If you like I can send you a 64-bit precompiled node_modules tarball (rar, zip, whatever) that you can use for your deployment on the windows server. I'm quite certain that will fix this specific problem. However, that'd be no durable solution, of course
-
@JasperNL you can now use bash in a Linux environment rubbing directly on top of the windows kernel. Look up "bash on Windows"
-
@PitaJ I've read about it at LowEndTalk before, but I don't see the benefit of it over MinGW. MinGW provides most standard linux commands (ls, cd, touch, grep, ssh, scp, tar, ip) that I'll often use and what I'm used to. If I need something more advanced than that, I'll probably be better off with starting a debian VM in virtualbox
I don't have problems with using windows' commandprompt for doing things with node.js or python when MinGW starts bitching about compiling binaries for windows again. That's what I'm used to, after all.. -
Looks like
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\np m-cli.js" "install"
is your issue. I had the same thing a while ago when installing NodeBB on Windows. Too many backslashes for the directories.
-
@Jenkler said in Windows Server 2012 Problem (AGAIN):
@JasperNL Docker in CoreOS works extremely well. I guess you lose som performance but the upside of Docker is worth it
Oh, I did not get that you were proposing a move to CoreOS as a whole! I thought you proposed using Docker on a Windows host. The latter is certainly a no-go, because that requires virtualbox, which is killing for the applications efficiency.
I don't know if moving to CoreOS (or a standard setup with any other linux distro) is an option that OP considers, because there may be tonnes of reasons to stay with windows. Think about IIS or Active Directory-related services, or any other thing that are itchy combined with Linux.
That's why I think providing windows-centered recommendations may be better suitable for him. I'm sure there must be a such a solution to his problem, because NodeBB could run perfectly on Windows.
@Scuzz said in Windows Server 2012 Problem (AGAIN):
Looks like
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\np m-cli.js" "install"
is your issue. I had the same thing a while ago when installing NodeBB on Windows. Too many backslashes for the directories.
I don't think that's the issue. Windows uses backslashes for directory pathing. The backslashes must occur twice, because otherwise it will be parsed as a single backslash (as posix-standard expressions are used as in javascript and bash).
Besides that, the error that comes up is an error from npm, which shows that npm can be executed.The problem is described here:
npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! syscall read
ECONNRESET means that the connection to the packages is reset . This is most likely due to a firewall issue. Possible resolutions to that problem are turning off the firewall, or run the command prompt (or do you use powershell?) as administrator.
-
@JasperNL I think he's referring to the four backslashes in a row.