Error while trying to run mountebank - mountebank

Getting the below error when try to run/start mountebank using the imposter file.
Installed package versions,
npm : 5.6.0
node : 8.10.0
mountebank : 1.14.0
Command use to start mountebank:
mb --configfile imposter.ejs --allowInjection

Looks like you have a JSON formatting error in your imposter file. Try copying it into https://jsonlint.com/ for help. If it's templatized, I'd recommend excising parts of it at a time until you can locate the part where the syntax error lies.

Related

Getting The error like "env: node\r: No such file or directory" when i am trying to run the MIgrations scripts in Node js Project

Command I tried:
npx knex migrate:latest
Error Message:
"env: node\r: No such file or directory"
KnexPackage version : v2.4.0
When I am using lower version of knex (1.0.7) it's working as expected, but the latest version is not working as expected
This should've been fixed in the 2.4.2 release. Maybe next time it might be better to open an issue directly in the repo in case of an issue like this one :)

error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>

I'm trying to install the node.js project and run
npm install
and got the error
../src/main.cc:137:89: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)'
what is wrong with the project?
the full error is here https://paste.ubuntu.com/p/hJGDfdrKB2/
It looks like the package you are using doesn't support the version of Node you are running. Try running it under Node v8 and see if that corrects the problem. If it does let the package maintainer know it needs updating.
Plasma
downgrading to nodejs-10, worked for me.
Hope this will help.

Node Js run build errors can't resolve component

When i do a npm run build I am getting the following error.
./pages/_app.js
Module not found: Can't resolve '../components/Nav/Nav' in '/home/webuser/node_site/document/pages'
The components and Nav folder are in the correct location. Also the Nav.js file is also there. I have also tried ../components/Nav/Nav.js still giving module not found.
Node is version 12.16.2
npm version 6.14.4
Ok well this is embarrassing. I had caps incorrectly mac doesn't seem to however linux does. the folder structure is components/nav/Nav the code is ../components/Nav/Nav it compiled just fine on the mac. Once I changed the code to ../components/nav/Nav everything worked.

"node-gyp build" Fatal error C1083

I'm trying to run a project on my windows 10 (x64) with nodejs.
To run the project, I was given a list of components/packages to install that included Bower, Ruby, Sass, Grunt, MySQL and Redis. Further components included installing node-gyp, node-canvas, Python 2.7 and Microsoft Build Tools
(Link: https://github.com/Automattic/node-canvas/wiki/Installation---Windows ).
After installing all the dependencies, I keep getting an error message :
c1xx : fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [C:\myeffect\build\binding.vcxproj]
I've done everything I could to resolve the error, re-installed everything, added PATH to python on the System Variables, EVERYTHING.
But the error keeps coming. Please someone Help me what to do.
you can try it, i solved it.
create C:\myeffect\src\binding.cc。 bingd.cc file is empty file。

Node.js : npm error, node file v8.h for node-gyp is not working

I am new to this website, and I may make mistakes while writing this question. Please tell me, in order to improve.
I work on Windows 10.
I am learning node.js, and I was looking for socket.io on npm. After searching for ages on the web, I didn't find an answer for a problem like mine. So, maybe it is easy to fix, but I am not familiar with IT in general.
Here is my problem, I write in my powershell: npm intall socket.io
A thousand error sentences appear on my powershell :
C:\Users\Rocp\.node-gyp\4.2.2\include\node\v8.h(336): error C2988: unrecognizable template declaration/definition [C:\U
sers\Rocp\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modul
es\bufferutil\build\bufferutil.vcxproj]
C:\Users\Rocp\.node-gyp\4.2.2\include\node\v8.h(336): error C2059: syntax error : 'using' [C:\Users\Rocp\node_modules\s
ocket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil\build\buff
erutil.vcxproj]
C:\Users\Rocp\.node-gyp\4.2.2\include\node\v8.h(469): error C2988: unrecognizable template declaration/definition [C:\U
sers\Rocp\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modul
es\bufferutil\build\bufferutil.vcxproj]
...
until C:\users\Rocp\.node-gyp\4.2.2\include\node\v8.h (3478)
Moreover, it shows :
Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
Please note that I followed the tutorial for problems with npm :
I downloaded python 2.7.3 and set it with: npm config set python c:/python27/python.exe
I downloaded MSVS 2012 express, and I set it in the config too.

Resources