npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Cannot read property "raw" of undefined

What I Wanted to Do

Run npm install in my repo and have it install all the dependencies and link all the file: references.

What Happened Instead

Lots of ENOENT warnings about files in node_modules/.staging and ultimately a Cannot read property 'raw' of undefined error.

Reproduction Steps

  1. npx degit tivac/modular-css modular-css
  2. cd modular-css
  3. npm install

I originally got the error in my development repo, but I’m getting the same issue if I follow these simpler repro steps.


2018-08-29T06_53_30_200Z-debug.log (712.6 KB)

Platform Info

$ npm --versions
{ 'modular-css': '0.0.0',
  npm: '6.4.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.29.0',
  node: '8.11.2',
  openssl: '1.0.2o',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.54',
  zlib: '1.2.11' }
$ node -p process.platform

Here’s another log from me attempting to repro locally.

2018-08-29T06_57_48_705Z-debug.log (705.9 KB)

Quick Update. I decided to try installing all my dependencies by removing everything and installing them one-by-one. I had to remove and re-add them in differing orders multiple times to get it to work. Eventually I got back to where I was previously with all my dependencies installed!


This obviously won’t scale long-term, but it’s something.