developerFolio icon indicating copy to clipboard operation
developerFolio copied to clipboard

Got error messages after running npm install on my terminal

Open OlusegunJoseph opened this issue 2 years ago • 18 comments

Describe the bug

I suspected most of the dependencies are no more supported and it is difficult to fix because it complains of more than one dependencies. Attached is the screen shot of error messages Screen Shot 1 Screen Shot 2 Screen Shot 3 Screen Shot 4

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

I expected it to run and display the app on localhost

Is this responsiveness Issue

No

Screenshots

Screen Shot 1 Screen Shot 2 Screen Shot 3 Screen Shot 4

Desktop

  • OS: [e.g. iOS]
  • Browser: [e.g. chrome, safari]
  • Version: [e.g. 22]

Smartphones

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

No response

OlusegunJoseph avatar Feb 10 '23 14:02 OlusegunJoseph

@OlusegunJoseph We are migrating to the nextjs and it would solve post of the issues

saadpasta avatar Feb 12 '23 13:02 saadpasta

Same error here. Hope to get a fix soon.

frankcaoyun avatar Mar 04 '23 08:03 frankcaoyun

Has it gotten fixed yet? I am facing the same error.

deathblade287 avatar Mar 06 '23 14:03 deathblade287

Same error here!

BigSamu avatar Mar 08 '23 19:03 BigSamu

@BigSamu @AviralDhingra @frankcaoyun Please update your node version.

sadapasta avatar Mar 08 '23 19:03 sadapasta

@saadpasta so I reinstalled NodeJS and now I am using the stable version v18.15.0 (previously using v19.6.0). After that, the installation finished succesfully but shows the following warnings:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { npm: '^3.0.0' },
npm WARN EBADENGINE   current: { node: 'v18.15.0', npm: '9.5.0' }
npm WARN EBADENGINE }

up to date, audited 1550 packages in 2s

252 packages are looking for funding
  run `npm fund` for details

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

However, now when I run npm start I received the following error:


> [email protected] start
> node fetch.js && react-scripts start

Fetching profile data for BigSamu
Fetching Medium blogs data for YOU MEDIUM USERNAME HERE
node:_http_client:184
      throw new ERR_UNESCAPED_CHARACTERS('Request path');
      ^

TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
    at new NodeError (node:internal/errors:399:5)
    at new ClientRequest (node:_http_client:184:13)
    at Object.request (node:https:360:10)
    at Object.<anonymous> (/Users/samuel/Project Code/developerFolio/fetch.js:106:21)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'ERR_UNESCAPED_CHARACTERS'
}

Node.js v18.15.0

Already put my Github token and username in the .env file

BigSamu avatar Mar 08 '23 20:03 BigSamu

Ok found the problem. The project is incompatible with NodeJS v18 due to an issue with OpenSSL. I downgraded NodeJS to version 16, and the problem is fixed.

BigSamu avatar Mar 09 '23 18:03 BigSamu

npm update got mine fixed

Aladdin4u avatar Mar 13 '23 02:03 Aladdin4u

Still the same error. Have you all got any fix?

Ashishyadav07 avatar Mar 28 '23 06:03 Ashishyadav07

Check for outdated dependence npm outdated then update again with npm update

Aladdin4u avatar Mar 28 '23 10:03 Aladdin4u

@Aladdin4u thank you brother.

Ashishyadav07 avatar Mar 29 '23 11:03 Ashishyadav07

Deleting package-lock.json file solved it for me.

abdullahnasir4 avatar Mar 31 '23 05:03 abdullahnasir4

@abdullahnasir4 I followed the same.

  1. Cloned repo
  2. Deleted package-lock.json file
  3. npm install
  4. npm update

After this, the package-lock.json file is recreated properly, but I still see 9 vulnerabilities.

aakashmanjrekar11 avatar Apr 01 '23 00:04 aakashmanjrekar11

@aakashmanjrekar11 Can you try it with these steps.

  1. Clone repo
  2. Delete package-lock.json file
  3. npm install

abdullahnasir4 avatar Apr 06 '23 04:04 abdullahnasir4

@abdullahnasir4 that's what I literally said in my previous reply :) Anyways it works all right for me after those steps.

aakashmanjrekar11 avatar Apr 06 '23 04:04 aakashmanjrekar11

@saadpasta so I reinstalled NodeJS and now I am using the stable version v18.15.0 (previously using v19.6.0). After that, the installation finished succesfully but shows the following warnings:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { npm: '^3.0.0' },
npm WARN EBADENGINE   current: { node: 'v18.15.0', npm: '9.5.0' }
npm WARN EBADENGINE }

up to date, audited 1550 packages in 2s

252 packages are looking for funding
  run `npm fund` for details

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

However, now when I run npm start I received the following error:


> [email protected] start
> node fetch.js && react-scripts start

Fetching profile data for BigSamu
Fetching Medium blogs data for YOU MEDIUM USERNAME HERE
node:_http_client:184
      throw new ERR_UNESCAPED_CHARACTERS('Request path');
      ^

TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
    at new NodeError (node:internal/errors:399:5)
    at new ClientRequest (node:_http_client:184:13)
    at Object.request (node:https:360:10)
    at Object.<anonymous> (/Users/samuel/Project Code/developerFolio/fetch.js:106:21)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'ERR_UNESCAPED_CHARACTERS'
}

Node.js v18.15.0

Already put my Github token and username in the .env file

I'm having the same issue. After doing the roundabout process of getting Docker to work on Windows, I finally thought it would work but I'm getting the same error just using the image/docker container, which uses node v10. I'm not a web coder and I've already spent a day trying to debug - close to giving up on this repo - I might be cursed for trying to get this work on windows though.

boggodan avatar May 08 '23 14:05 boggodan

Npm also got my error fixed

Oak254 avatar Oct 09 '23 18:10 Oak254

@Oak254 What was your fix? Can you create a PR for that

saadpasta avatar Oct 18 '23 17:10 saadpasta