Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency structure broke #192

Closed
nitinrgoyal opened this issue May 12, 2021 · 0 comments
Closed

Dependency structure broke #192

nitinrgoyal opened this issue May 12, 2021 · 0 comments

Comments

@nitinrgoyal
Copy link

nitinrgoyal commented May 12, 2021

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

  • use node version 14.15.4, npm version 6.4.10
  • add jarallax 1.12.5 or ^1.12.6 in my package.json
  • run npm i

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:

  • my older installation is working with jarallax 1.12.5 which was using video-worker 1.1.10 but as 1.12.5 also has video-worker: "^1.1.10" in packsge.json so 1.12.5 is also not working now. So we need to use video-worker : "1.1.10" (specific version) till the time video-worker solves this issue.
  • Also tested that if I remove parallax from my package.json, npm install runs successfully.
@nk-o nk-o closed this as completed in 6d968ca May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant