Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Cannot require pacote #128

Closed
RoobinGood opened this issue Dec 11, 2017 · 0 comments
Closed

Cannot require pacote #128

RoobinGood opened this issue Dec 11, 2017 · 0 comments

Comments

@RoobinGood
Copy link

Hi!

I trying to execute first example, but error occurred on require('pacote'):

Error: Cannot find module 'mkdirp'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/anatoly/fun/t/node_modules/pacote/extract.js:7:29)
    ...

Error related to this line:

const mkdirp = BB.promisify(require('mkdirp'))

It happens because mkdirp is dev dependnency of pacote. The same will happens with rimraf.
Is it correct that mkdirp and rimraf are dev dependencies but used in production part of package?

Pacote: v7.0.2
Node: v4.8.4
Npm: v2.15.11

@zkat zkat closed this as completed in #140 Feb 21, 2018
zkat pushed a commit that referenced this issue Feb 21, 2018
This only hurts individuals on npm2, as both packages are transitive
dependencies of many explicit dependencies already.

53899c7 added runtime require of mkdirp
189cdd2 added runtime require of rimraf

Fixes: #128
zkat pushed a commit that referenced this issue Feb 23, 2018
This only hurts individuals on npm2, as both packages are transitive
dependencies of many explicit dependencies already.

53899c7 added runtime require of mkdirp
189cdd2 added runtime require of rimraf

Fixes: #128
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant