max-mapper / max-mapper/data-plumber

installation problem - module "ansi-codes"

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
36
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi,
I tried to install data-plumber in my current setup and I got this error when I run and select an item from the menu:

```
module.js:340
throw err;
^
Error: Cannot find module 'ansi-codes'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/lib/node_modules/data-plumber/node_modules/styled/index.js:1:74)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
```

When I ran `npm explore ansi-codes` I see only two files in folder and README.md file reads:

```
# Security holding package

This package name is not currently in use, but was formerly occupied
by a popular package. To avoid malicious use, npm is hanging on to
the package name, but loosely, and we'll probably give it to you if
you want it.

You may adopt this package by contacting support@npmjs.com and
requesting the name.
```

My system is Ubuntu 14.04 so I thought node.js version is old in my computer so I tested same thing in Ubuntu 16.04 and during installation I got the following error:

```
$ npm install data-plumber -g
npm WARN deprecated win-spawn@2.0.0: use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "data-plumber" "-g"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code EREADFILE

npm ERR! Error extracting /home/ubuntu/.npm/ansi-codes/0.0.0/package.tgz archive: ENOENT: no such file or directory, open '/home/ubuntu/.npm/ansi-codes/0.0.0/package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/Desktop/npm-debug.log
```

Even the npm registry is listing the [v0.0.1-security version](https://www.npmjs.com/search?q=ansi-codes). Is this module depreciated/deleted? How can I install ansi-codes module for data-plumber?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dependency declaration for data-plumber and the require shown in /usr/lib/node_modules/data-plumber/node_modules/styled/index.js. Reproduce the global installation and menu-selection failure on the reported Node.js setup, then verify that installation completes and selecting an item no longer reports the missing ansi-codes module.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.