node.js execute system command synchronously

I need in node.js function result = execSync('node -v'); that will synchronously execute the given command line and return all stdout'ed by that command text. ps. Sync is wrong. I know. Just...

Change working directory in my current shell context when running Node script

I am trying to change the working directory of my Node.js script when it is run from a bin script. I have something like the following: #!/usr/bin/env node process.chdir('/Users') When I then...

Installed Cordova on Mac, but PhoneGap is the only one I can find

I use: sudo npm install -g cordova to install Cordova on my Mac, and here is the last few lines of the command line generated: npm http GET https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz npm...

Issue getting TypeScript, Karma, RequireJS and Chai to work together

I'm trying to rewrite one of my projects using TypeScript and because I'm quite new to TypeScript and RequireJS I'm not sure what I'm missing. I've followed this guide Karma - RequireJS and double...

Why do I get 'There is no timestamp for /base/src/tests/core/types.tests!'?

I'm trying to figure it out for few hours and I guess that it has to do with my misconfigured requirejs file ('test.main.js') but I'm not quite sure so can someone please explain to me what's...

Can't install anything with npm ECONNRESET without proxy

I used node.js to install some things via npm without any problems. Now I changed nothing on my settings (Win8; no proxy, internet is working) and I can't install anything (especially cordova and...

How to use SASS in Ionic framework?

I am trying to use SASS in my project. I open this link and follow all command. I create a project and setup SASS. http://learn.ionicframework.com/formulas/working-with-sass/ I got this directory...

Could not find module 'shelljs'

I have an Error when I run an Apache Cordova project from Visual Studio 2015 as below. Error BLD401 Error : BLD00401 : Could not find module 'shelljs'. Please Go to Tools --> Options --> Tools for...

Open a folder window using explorer.exe or finder using node js

I was wondering if there was a way to open a folder location via node js. I found this library but it only opens files and URLs. Edit: Fuser's answer put me on the right track and I found...

Android White Background when keyboard fades away

Video of the problem from a different user but its the same http://imgur.com/ca2cNZv I have a background image set as follows : .pane { background-image: url("../img/inner-banner-bg.jpg"); ...

How do I fix this gyp rebuild error when trying to install nodegit?

I'm trying to install the nodegit module on my Windows 7 machine. Here are the relevant versions of some things I have installed, let me know if anything else would be helpful: Windows 7 python...

Firebase is not defined?

I'm working on an Angular project and use Firebase, and it's erroring with ReferenceError: Firebase is not defined, but I can not figure out why. this is my index.html <!DOCTYPE html> <head> ...

Module build failed: Error: Could not find file: '[my-project-directory]\src\App.vue'

[my-project-directory] is the full path of my project. I started off with the webpack project via "vue init webpack my-project", as per the official Vue.js documentation. I am attempting to switch...

These dependencies were not found error in Vue.js

After updating npm & node to their last versions, I get following errors when I try to run my vue project: These dependencies were not...

Page styles break when I change styles in Chrome DevTools with Webpack HMR

I have a strange problem: I'm using Webpack (with Vue-CLI) + HMR. When I try to change styles in the browser in DevTools, then my page itself changes the styles - it removes some of them...

npm run dev produces UnhandledPromiseRejectionWarning

I keep getting this error UnhandledPromiseRejectionWarning when I run npm run dev on my Vagrant machine and I can't figure out why or where to check where my promise ins't "completed" with catch()...

NPM | Error while installing modules

When I try to install some modules I get this error: npm ERR! Unexpected end of JSON input while parsing near '..."hjs":"~0.0.6","marke' npm ERR! A complete log of this run can be found in: npm...

heroku node deployment(react-boilerplate) sh: 1: node-pre-gyp: not found error

I'm getting error when deploying react-boilerplate on heroku with feathers, nodejs, mongodb, react. I specified up to date versions in package.json, and tried building with both npm and yarn but...

React boilerplate : Maximum call stack size exceeded

I'm trying to create react-boilerplate but got bellow error. npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found in: npm ERR! ...

Why is my vue.config.js file not working?

I want to deploy my app and for that i need the vue.config.js file for a target url. But everything i place in this file (i had to create it myself), is not working. not the outputDir for the...

Implement self hosted font in Material-UI custom theme (ReactJS)?

At the moment I'm setting up my first project using Material-UI for ReactJS. As I want to customise the default theme with, for example, a custom font (hosted on the server, not Google Fonts or...

node-sass and sass-loader - Module build failed: TypeError: this.getResolve is not a function at Object.loader

I am simply trying to follow a tutorial which tells me to install both node-sass and sass-loader. When I do I get the following error: ERROR Failed to compile with 1 errors ...

CSS Loader has been initialised using an options object that does not match the API schema

Production build fails with the following error: ValidationError: Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. - options has...

Cannot install Firebase for VueJS + NodeJS

I am using vueJS to build an authentication (login) page with Firebase, each time when I run: npm run serve I have the same error asking me to install Firebase: `Failed to compile with 7 errors ...

ORA Spinner stops on CLI with Inquirer.js

Don't know what to title the question but I will try my best to convey in the rest of the question. I am developing a CLI which first prompt user for a few questions and clone a repository based...

Nestjs Shell Command in queue Consumer

I want to use shell commands like git clone in a nestjs queue Consumer. But when i execute the command with shelljs it just skips these and ends the job. Any idea why i'm getting my test logs but...

How to excute correct "sed" command in shelljs?

I am using shelljs to excute shell command to find and replace content in my configuration file. My configuration is file content like bellow, I want to find all string "" by the name of my clinic...

Error: Cannot find module 'nanoid/non-secure'

My project was building up until today. I did not change anything just to be clear. Oddly enough, it is also happening on another NPM project that I had not touched in weeks. I'm getting the...

error Unexpected token = after upgrading from RN 0.64.2 to 0.65.1

I just upgraded from 64.1 to 65.1 by following the upgrade helper. But I started getting this error and have not been able to fix it. I have upgraded node/npm to 14.17 and done everything else I...

npm install failing with error "error Build failed with error code: 1"

i am running npm install command on my project but getting error Build failed with error code: 1 Part of the log posted below. 0 verbose cli [ 0 verbose cli 'C:\\Program...