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

issue while deploying/installing #9

Open
Hari-GIT1 opened this issue Jun 9, 2024 · 3 comments
Open

issue while deploying/installing #9

Hari-GIT1 opened this issue Jun 9, 2024 · 3 comments

Comments

@Hari-GIT1
Copy link

ubuntu@ip-172-31-12-54:~/AWS-Session$ npm run start

[email protected] start /home/ubuntu/AWS-Session
node server.js

/home/ubuntu/AWS-Session/server.js:3
const { resolve } = require("path");
^
SyntaxError: Unexpected token {
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
npm ERR! weird error 8
npm ERR! not ok code 0

@arashutosh
Copy link

there is an error on line numbe 3 in server.js
give more brief about the issue

@BeinGHuan
Copy link

BeinGHuan commented Aug 30, 2024

ubuntu@ip-172-31-12-54:~/AWS-Session$ npm run start

[email protected] start /home/ubuntu/AWS-Session
node server.js

/home/ubuntu/AWS-Session/server.js:3 const { resolve } = require("path"); ^ SyntaxError: Unexpected token { at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3 npm ERR! weird error 8 npm ERR! not ok code 0

This is probably because of the update of the node package manager as there may be vulnerabilities that the device is not able to rectify.

Try

npm audit
npm audit fix
npm update
npm run start

Even if there's an error try installing the packages manually.
Even if that doesn't work either then contact expert professional for the error that you are getting.

@BeinGHuan
Copy link

there is an error on line numbe 3 in server.js give more brief about the issue

You can try the same method mentioned above as well and check if that works.

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

3 participants