Not able to install alias library

(Sukrut Rayate) #1

What I Wanted to Do

I want to install alias and babel-eslint library

What Happened Instead

babel-eslint failed as there was no dependent library "alias " found. Error: “Invalid dependency type requested: alias”

I tried installing alias library separately, then got following error,
npm ERR! typeerror Error: Argument #2: Expected string but got null

Reproduction Steps

  1. run “npm i alias”
  2. observe the error displayed


Following error is displayed,
npm ERR! typeerror Error: Argument #2: Expected string but got null
npm ERR! typeerror at exports.findRequirement (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:721:3)
npm ERR! typeerror at findChild (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:109:17)
npm ERR! typeerror at computeMetadata (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:119:9)
npm ERR! typeerror at Installer.normalizeCurrentTree (C:\Program Files\nodejs\node_modules\npm\lib\install.js:408:3)
npm ERR! typeerror at Array. (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
npm ERR! typeerror at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:18:7
npm ERR! typeerror at iferr (C:\Program Files\nodejs\node_modules\npm\lib\install.js:362:5)
npm ERR! typeerror at a (C:\Program Files\nodejs\node_modules\npm\node_modules\iferr\iferr.js:3:64)
npm ERR! typeerror at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\node_modules\call-limit\call-limit.js:22:12
npm ERR! typeerror at _combinedTickCallback (internal/process/next_tick.js:132:7)
npm ERR! typeerror at process._tickCallback (internal/process/next_tick.js:181:9)
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror

Log File: 2019-05-15T10_59_35_900Z-debug.log

Platform Info

$ npm --versions
{npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.12.0',
  openssl: '1.0.2p',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.2',
  v8: '6.2.414.66',
  zlib: '1.2.11' }
$ node -p process.platform
(John Gee) #2

(I think this is probably a problem package rather than an npm bug as such, moved topic to #support.)

I do not think the error you got when installing babel-eslint was referring to the alias package, I think it was referring to some text in the package.json.

Possibly because the package has been set up for yarn according to this post:

I was able to install babel-eslint without issue in a fresh project on Mac.

(Sukrut Rayate) #3

Thanks for the reply shadowspawn (y)

I will try again for babel-eslint, but I confirm, there is a no mention of alias in package.json file for babel-eslint library. That’s why it puzzled me and just with trial and error, I end up downloading alias library.

1 Like