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

on install -> no such file or directory #134

Open
srghma opened this issue Feb 1, 2022 · 2 comments
Open

on install -> no such file or directory #134

srghma opened this issue Feb 1, 2022 · 2 comments

Comments

@srghma
Copy link

srghma commented Feb 1, 2022

 ~/projects/chanterelle   master ±  npm install -g f-o-a-m/chanterelle
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /home/srghma/.node_modules/lib/node_modules/chanterelle/chanterelle-bin.sh
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/srghma/.node_modules/lib/node_modules/chanterelle/chanterelle-bin.sh'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/srghma/.npm/_logs/2022-02-01T17_27_03_732Z-debug.log


 ✘  ~/projects/chanterelle   master  npm install -g f-o-a-m/chanterelle#v3.0.0
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /home/srghma/.node_modules/lib/node_modules/chanterelle/chanterelle-bin.sh
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/srghma/.node_modules/lib/node_modules/chanterelle/chanterelle-bin.sh'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/srghma/.npm/_logs/2022-02-01T17_35_02_729Z-debug.log

it's bc there is just no such dir

 ~/projects/chanterelle   master  ls -al /home/srghma/.node_modules/lib/node_modules
total 100
drwxr-xr-x 25 srghma users 4096 Feb  1 19:35 .
drwxr-xr-x  3 srghma users 4096 Oct  9  2019 ..
drwxr-xr-x  4 srghma users 4096 May  7  2020 bower
drwxr-xr-x  6 srghma users 4096 May  7  2020 bower-check-updates

maybe bc this packages is not on npm at all ?

https://www.npmjs.com/search?q=f-o-a-m%2Fchanterelle

@martyall
Copy link
Contributor

martyall commented Feb 1, 2022

I have never experienced this problem, what happens if you try to run it from within the chanterelle directory?

@srghma
Copy link
Author

srghma commented Feb 2, 2022

I didn't try yet, but node -e 'require(....)' should work


maybe fact that I cannot find https://www.npmjs.com/search?q=chanterelle package on npm is somehow related? (weird that npm cli tries to install, but package is not on a cloud)

the whole process of install is weird

actual

https://github.com/f-o-a-m/chanterelle/blob/master/chanterelle-bin.sh runs on install, the purs is required to be installed on computer

better

  1. add something like this file https://github.com/purescript-graphqlclient/purescript-graphqlclient/blob/master/bin/purescript-graphqlclient-generator
  2. https://github.com/purescript-graphqlclient/purescript-graphqlclient/blob/3c833446aa0b16b07dfd2cc61c5adbdddb800280/package.json#L15

but unlike for purescript-graphqlclient the .gitignore should contain dist dir and .npmignore should contain all other dirs except dist and bin

this way only dist and bin will be published

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

2 participants