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 install error #359

Open
2 tasks
bambinounos opened this issue Apr 29, 2024 · 6 comments
Open
2 tasks

npm install error #359

bambinounos opened this issue Apr 29, 2024 · 6 comments

Comments

@bambinounos
Copy link

bambinounos commented Apr 29, 2024

Install error

Trying to install

Install succesfuly

**internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'node:path'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/usr/local/lib/node_modules/npm/lib/cli.js:2:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)**

Deployment

  • Production (none)
  • Development (npm install)

Puter version (latest)

@Eric-Lighthall
Copy link
Contributor

What version of Node.js are you running? I wonder if it's related to that.

@bambinounos
Copy link
Author

I tried to re install npm, now it says /usr/bin/env: ‘node’: No such file or directory

@bambinounos
Copy link
Author

hi @Eric-Lighthall nodejs version is v20.12.2

@bambinounos
Copy link
Author

@Eric-Lighthall npm version is 10.5.0

@Eric-Lighthall
Copy link
Contributor

I tried to re install npm, now it says /usr/bin/env: ‘node’: No such file or directory

What shows up when you run the command which node? The error /usr/bin/env: ‘node’: No such file or directory seems like it's an issue with the node installation.

Searching the error on google shows it's usually a naming problem with the path.

@bambinounos
Copy link
Author

@Eric-Lighthall which node command /home/ubuntu/.nvm/versions/node/v20.12.2/bin/node

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