Can't install any package with node npm

I'm trying to install some node packages through npm, but it won't go. I've already tried to install/unistall/update node, but nothing seems to work. I'm using ubuntu 12.04 - Here is how i'm...

NPM install for packages not working

T hanks in advance for any help I can get. I am trying to install packages like grunt, bower, and yeoman using nodejs and the NPM in my mac OSX 10.8's terminal. I check node and NPM's versions to...

Performance Cost of PubSub / Excessive Events and Event Handlers in JavaScript?

Pub Sub / Event Driven architecture is a common practice in the world of Client & Server side JavaScript. I have been tasked to architect a very large Web Application using Dojo as Front End and...

How can I run NPM without sudo?

I've been reading posts, trying to figure out how to run npm install without sudo. I also came across the following article but I think it's for an older version of NPM. I done the following which...

Electron error on canceling file open dialog

When I press the cancel button on file open dialog (code below) I receive the following error: A JavaScript error occurred in the main process Uncaught Exception: TypeError: Error processing...

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...

RegEx for jsDoc comments

Can't find any usable RegExp example to match all jsDoc comment blocks within a text file. Basically, it needs to find all blocks that satisfy the following rules: Starts with /**, followed by...

Error deploying node.js app to Amazon Elastic beanstalk

I recently deployed a new node.js app on beanstalk and keep running into the following error? [Instance: i-cce89e4a] Command failed on instance. Return code: 1 Output:...

TypeScript -> AST -> TypeScript

Is there a way to parse a TypeScript file to an AST, modify the AST, and parse it then back to TypeScript as the tools Esprima + Escodegen are able to? Important is that I do NOT want to...

Failed to Parse error : Unexpected token on "import" with Istanbul

I am using Istanbul for code coverage of Protractor Tests. In the process of Instrumenting the source Code I am getting a "Failed to parse, Unexpected Token" error, and after going through the...

Publishing a .NET Core / Angular 4 Project to Netlify

Does anyone have experience publishing a .NET/Angular project to Netlify? I'm using the Angular Microsoft.AspNetCore.SpaTemplates template. On Netlify, I'm getting a non-zero exit code that's...

How to install and build CodeIntel with Pip for Sublime Text

I'm trying to install CodeIntel on my Mac for use with SublimeCodeIntel, but I'm getting an error. I'm running: MacOS Sierra (10.12.5) Python 2.7.10 PIP 9.0.1 When I run: pip install --upgrade...

Artillery script for API with random number is not working

I am using random number in api call as below, but its giving error. "post": { "url": ...

How to use acorn.js or similar library to add a new node to the ast tree?

I was trying to use acorn.js along with yeoman to add code to existing js files .I have tried to work with esprima and acorn to do this job but I cannot find any documentation about adding node to the AST.

NPM unmet peer dependency on every package i try to install

I am very new to the frustrating world of NPM. I have run create-react-app, it installs except for the following warning messages yarn add v1.17.3 [1/4] Resolving packages... warning react-scripts...

Sudden module resolve error with tns-core-modules in Angular

After fiddling with my nativescript build for a while, when I tried to compile my angular build, it resulted in this massive series of compilation errors. (Running ng serve --open). ERROR in...

Getting error while downloading node modules

I am working on angular 7 and I was trying to download npm module called 'ngx-image-cropper'. But it was throwing some errors like :. npm ERR! Invalid package name "no,rmalize-path": name can only...

NodeJS ES6 Modules and "default" export / import

I am trying to use ES6 style modules with NodeJS v13.13 and I am running into conflicting behavior. Originally my project was transpiled with node-babel, but then I enabled the builtin ES6 module...

Gulp require alias

I am looking for a safe way of doing require aliases using gulp. The idea is similar to what webpack offers with resolve alias. For example, I put on my source code something like...

How to use npm module in DENO?

Deno is super cool. I saw it in the morning and want to migrate to deno now. I was trying to move my existing nodejs script to deno. Can any one help me on how to use npm modules in deno. I need...

Creating a new project in angular

I used this command ng new hello to create a new project in visual studio code. It creates all the files but while installing packages, it stops and shows an error. I am copying the whole error...

Evaluate JavaScript AST directly

I maintain doctest. The library uses an ECMAScript parser (Esprima) to extract comments from a JavaScript source file, then identifies “doctests” within these comments. For example: 'use...

Tarball data seems to be corrupted. Trying one more time

I've been debugging this for almost a week and I havent really solved it. Can someone help mo on this one. I already uninstalled and reinstalled my node and it always comes up. Also tried npm...

transpiler battle: breaking out of nested function, with vs without throw

I have just finished writing "version 0" of my first (toy) transpiler. It works. It turns a string of "pseudo JavaScript" (JavaScript with an additional feature) into a string of runnable...

Termux NodeJS - npm install fails, cannot create symbolic link. Workaround

Termux will not allow you to create symbolic links in /storage/emulated/0. This is due to a design limitation with its file system. Thus, some npm installs will fail with the following error: ...

Cant Use TYPEORM init

I've already installed typeorm from NPM. However, when using typeorm in CLI I'm faced with 'typeorm' is not recognized as an internal or external command, operable program or batch file. using...

Getting npm ERR! 404 '[email protected]://github.com/ariya/esprima/tarball/master' is not in the npm registry

During jenkins build getting the below error and build is getting failed npm ERR! code E404 npm ERR! 404 Not Found - GET https://codeload.github.com/ariya/esprima/legacy.tar.gz/master npm ERR!...

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...

NPM Install failing after macOs Update to Monterey

Im not sure how to fix this error on Node. I get below error when I run npm install to setup Grunt Sass in the server. I have upgraded to latest Mac OS - Monterrey yesterday. npm ERR! code E404 ...

How to parse & extract javascript class methods?

How can I parse a javascript class in order to get a list of all its methods? So far I have tried below parsers: [email protected], [email protected] in nodejs esprima==4.0.1 in python. Here's all my...