Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Cannot find some modules when use [email protected] install standard #17717

@LitoMore

Description

@LitoMore

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

Some modules is missing when I use npm i -D standard.
You can find eslint-plugin-react module in ./node_modules/standard/node_modules/.

standard: Unexpected linter output:

Error: Failed to load plugin react: Cannot find module 'eslint-plugin-react'
Referenced from: /Users/litomore/Git/npm-5.2.0-issue/node_modules/standard/eslintrc.json
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.resolve (internal/module.js:18:19)
    at Object.load (/Users/litomore/Git/npm-5.2.0-issue/node_modules/eslint/lib/config/plugins.js:134:29)
    at Array.forEach (native)
    at Object.loadAll (/Users/litomore/Git/npm-5.2.0-issue/node_modules/eslint/lib/config/plugins.js:162:21)
    at load (/Users/litomore/Git/npm-5.2.0-issue/node_modules/eslint/lib/config/config-file.js:541:21)
    at configExtends.reduceRight (/Users/litomore/Git/npm-5.2.0-issue/node_modules/eslint/lib/config/config-file.js:424:36)
    at Array.reduceRight (native)
    at applyExtends (/Users/litomore/Git/npm-5.2.0-issue/node_modules/eslint/lib/config/config-file.js:408:28)
    at Object.load (/Users/litomore/Git/npm-5.2.0-issue/node_modules/eslint/lib/config/config-file.js:566:22)

If you think this is a bug in `standard`, open an issue: https://github.com/feross/standard/issues

How can the CLI team reproduce the problem?

  1. mkdir npm-5.2.0-issue && cd npm-5.2.0-issue
  2. npm init -y && npm i -D standard
  3. ./node_modules/.bin/standard

supporting information:

  • npm -v prints: 5.2.0
  • node -v prints: v8.1.2
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: macOS
  • Network issues:
    • Geographic location where npm was run:
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions