spotify/web-api-examples

npm install throwing error "Cannot find module 'yallist'"

Opened this issue · 0 comments

I tried installing inside the folder "web-api-auth-examples-master" & sub folders bt same error...have install node.js successfully...

\web-api-auth-examples-master> npm install
node:internal/modules/cjs/loader:933
const err = new Error(message);
^

Error: Cannot find module 'yallist'
Require stack:

  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\lru-cache\index.js
  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\range.js
  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\comparator.js
  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\semver\index.js
  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\lib\utils\unsupported.js
  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\lib\cli.js
  • C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\bin\npm-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. (C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\lru-cache\index.js:4:17)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\lru-cache\index.js',
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\range.js',
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\comparator.js',
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\node_modules\semver\index.js',
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\lib\utils\unsupported.js',
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\lib\cli.js',
    'C:\Users\This pc\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'
    ]
    }