jsimck / jsconfig.json

Small tool which automatically generates jsconfig.json, used for vscode workspace configuration, with some defaults and extracted webpack path aliases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot find module 'picocolors'

bushblade opened this issue · comments

Currently npx jsconfig.json fails with the error

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'picocolors'
Require stack:
- /home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/src/lib/utils.js
- /home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/src/index.js
- /home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/bin/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/src/lib/utils.js:5:12)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/src/lib/utils.js',
    '/home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/src/index.js',
    '/home/will/.npm/_npx/b49ef7524be35e79/node_modules/jsconfig.json/bin/cli.js'
  ]
}

👍 I got this error as well

Thanks for reporting, it was misplaced in the devDependencies rather than dependencies, so that was an error on my part. Sorry for the inconvenience, the fix should be out in few minutes.