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

npm can't find my files #142

Open
GogeiD opened this issue Feb 4, 2023 · 0 comments
Open

npm can't find my files #142

GogeiD opened this issue Feb 4, 2023 · 0 comments

Comments

@GogeiD
Copy link

GogeiD commented Feb 4, 2023

For some reason that I can't understand, npm doesn't seem to find the files that are right there in the folder. This is the error I am getting:

√ Choose which action you'd like to do: » Initialize in sub-folder
Created new directory, run cd 'tradingview-alerts-home' to enter that directory
Adding file: HOWTO.txt
Adding file: blacklist.csv
Adding file: config.yml
Adding file: package.json
Adding file: atat
Adding file: atat.cmd
Adding file: atat.ps1
Installing dependencies
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\user\Tools/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\user\Tools\package.json'
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!     C:\Users\user\AppData\Local\npm-cache\_logs\2023-02-04T23_30_42_947Z-debug-0.log
Error: Command failed: npm --loglevel=error --prefix './tradingview-alerts-home' install
    at checkExecSyncError (node:child_process:871:11)
    at execSync (node:child_process:943:15)
    at initializeMain (file:///C:/Users/user/AppData/Local/npm-cache/_npx/5455a11893b177f3/node_modules/@alleyway/create-tradingview-alerts-home/dist/index.js:89:9) {
  status: 4294963238,
  signal: null,
  output: [ null, null, null ],
  pid: 20400,
  stdout: null,
  stderr: null
}
done

I continue the installation, despite the error, and it appears to install OK, but again I got the #121 error of ERR_MODULE_NOT_FOUND. I have tried every workaround I seem to find (including #138), but I really don't know what is going on.

Windows 10
npm 8.19.2
node 18.12.0
cmd or Powershell

As always, thanks a lot for all your help.

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