nk-o / jarallax

Parallax scrolling for modern browsers
https://jarallax.nkdev.info
MIT License
1.38k stars 210 forks source link

Dependency structure broke #192

Closed nitinrgoyal closed 3 years ago

nitinrgoyal commented 3 years ago

On npm install, one of the dependencies of jarallax, video-worker is not getting installed due to its latest version 1.1.13.

Version 1.12.6 and 1.12.5 both have this issue.

Steps to reproduce

Error got in npm install is as follows:

> video-worker@1.1.13 postinstall /var/www/blog-frontend1/node_modules/video-worker
> npx simple-git-hooks

internal/fs/utils.js:307
    throw err;
    ^

Error: ENOENT: no such file or directory, stat '/home/ubuntu/.npm/_npx/356672/lib/package.json'
    at Object.statSync (fs.js:1086:3)
    at _getPackageJson (/home/ubuntu/.npm/_npx/356672/lib/node_modules/simple-git-hooks/simple-git-hooks.js:172:13)
    at checkSimpleGitHooksInDependencies (/home/ubuntu/.npm/_npx/356672/lib/node_modules/simple-git-hooks/simple-git-hooks.js:103:34)
    at postinstall (/home/ubuntu/.npm/_npx/356672/lib/node_modules/simple-git-hooks/postinstall.js:14:9)
    at Object.<anonymous> (/home/ubuntu/.npm/_npx/356672/lib/node_modules/simple-git-hooks/postinstall.js:23:1)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
  errno: -2,
  syscall: 'stat',
  code: 'ENOENT',
  path: '/home/ubuntu/.npm/_npx/356672/lib/package.json'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! simple-git-hooks@2.4.1 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the simple-git-hooks@2.4.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2021-05-12T11_49_40_932Z-debug.log
Install for [ 'simple-git-hooks@latest' ] failed with code 1

Note - this is error part and not complete output of npm install.

Resolution: