question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hi, neither npm install nor yarn add all works for me !!

See original GitHub issue

hi sir Daniel, ive been trying to run the commands npm install and yarn add all buth both dont work im using latest vscode version 1.63 and latest node.js lts version 16.13

these are the steps :

when i try to install yarn npm install yarn or npm install its says this ` npm install npm ERR! code 1 npm ERR! path C:\Users\MidouPC\Downloads\hashlips_art_engine -1.1.2_patch_v5\node_modules\canvas npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-p re-gyp install --fallback-to-build npm ERR! node:internal/modules/cjs/loader:361 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module ‘C:\Users\MidouPC\Downloa ds\hashlips_art_engine-1.1.2_patch_v5\node_modules\abbrev\ab brev.js’. Please verify that the package.json has a valid “m ain” entry npm ERR! at tryPackage (node:internal/modules/cjs/loader :353:19) npm ERR! at Function.Module._findPath (node:internal/mod ules/cjs/loader:566:18) npm ERR! at Function.Module._resolveFilename (node:inter nal/modules/cjs/loader:919:27) npm ERR! at Function.Module._load (node:internal/modules /cjs/loader:778:27) npm ERR! at Module.require (node:internal/modules/cjs/lo ader:1005:19) npm ERR! at require (node:internal/modules/cjs/helpers:1 02:18) npm ERR! at Object.<anonymous> (C:\Users\MidouPC\Downloa ds\hashlips_art_engine-1.1.2_patch_v5\node_modules\nopt\lib
nopt.js:10:14) npm ERR! at Module._compile (node:internal/modules/cjs/l oader:1101:14) npm ERR! at Object.Module._extensions…js (node:internal /modules/cjs/loader:1153:10) npm ERR! at Module.load (node:internal/modules/cjs/loade r:981:32) { npm ERR! code: ‘MODULE_NOT_FOUND’, npm ERR! path: ‘C:\Users\MidouPC\Downloads\hashlips_ar t_engine-1.1.2_patch_v5\node_modules\abbrev\package.json’ , npm ERR! requestPath: ‘abbrev’ npm ERR! }

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\MidouPC\AppData\Local\npm-cache_logs
2022-01-26T21_52_52_260Z-debug.log PS C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_pat

PS C:\Users\MidouPC\Downloads\hashlips_art_e ngine-1.1.2_patch_v5> npm install yarn npm ERR! code 1 npm ERR! path C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\canvas npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm ERR! node:internal/modules/cjs/loader:361 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module ‘C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\abbrev\abbrev.js’. Please verify that the package.json has a valid “main” entry npm ERR! at tryPackage (node:internal/modules/cjs/loader:353:19) npm ERR! at Function.Module._findPath (node:internal/modules/cjs/loader:566:18) npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:778:27) npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19) npm ERR! at require (node:internal/modules/cjs/helpers:102:18) npm ERR! at Object.<anonymous> (C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\nopt\lib\nopt.js:10:14) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14) npm ERR! at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32) { npm ERR! code: ‘MODULE_NOT_FOUND’, npm ERR! path: ‘C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\abbrev\package.json’, npm ERR! requestPath: ‘abbrev’ npm ERR! }

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\MidouPC\AppData\Local\npm-cache_logs\2022-01-27T02_58_28_702Z-debug.log PS C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5>`

when i execute yarn add all it keep mentioning module not found `PS C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5> yarn add all yarn add v1.22.17 warning …..\package.json: No license field warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages… [2/4] Fetching packages… [3/4] Linking dependencies… [4/4] Building fresh packages… [1/2] ? canvas error C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\canvas: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build Arguments: Directory: C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\canvas Output: node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module ‘…/lib/main’ Require stack:

  • C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules@mapbox\node-pre-gyp\bin\node-pre-gyp at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules@mapbox\node-pre-gyp\bin\node-pre-gyp:4:1) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { code: ‘MODULE_NOT_FOUND’, requireStack: [ ‘C:\Users\MidouPC\Downloads\hashlips_art_engine-1.1.2_patch_v5\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp’ ] } info Visit https://yarnpkg.com/en/docs/cli/add for documenta`

note that ive used hashlips_art_engine-1.0.0_update and hashlips_art_engine-main but both didnt work for me for hashlips_art_engine-1.0.0_update it shows me node-pre-gyp errors and i installed node-gyp and updated it but still not working, i didnt find a solution and you are my only hope i hope you resond to my issue and guide me to fix it

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
g00DZguycommented, Jan 30, 2022

Hello, thank you for your reply. I fixed the problem simply by changing the code editor from vscode to Atom. In order to work from atom correctly you need to install atom then enter to the ide and search for packages to install then install platformio build and platformio terminal and it should work perfectly.

On Sun, Jan 30, 2022, 15:25 noobyogi0010 @.***> wrote:

Hi, @IMADXXARIS https://github.com/IMADXXARIS Can you please share your package.json file?

— Reply to this email directly, view it on GitHub https://github.com/HashLips/hashlips_art_engine/issues/612#issuecomment-1025154514, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWICXNK6SBPOFXW6EMV5IM3UYVC57ANCNFSM5M4UB6OQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

0reactions
g00DZguycommented, Feb 1, 2022

I tried that but it didn’t work, i really advice using atom if you are fcing issues with vscode, best part is you don’t have to install yarn or enter yarn install all just npm install will install the modules and i works cool as i said before you need to install atom then install packages, basically 2 packages if the terminal didn’t work for you, forat one is platformio build 2nd is platformio ide terminal its is easy, you can google it

On Tue, Feb 1, 2022, 00:21 bolshoytoster @.***> wrote:

@khalid-moon https://github.com/khalid-moon you could try deleting the node_modules folder then running npm install again.

— Reply to this email directly, view it on GitHub https://github.com/HashLips/hashlips_art_engine/issues/612#issuecomment-1026309478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWICXNNCOSVVQ7V56E2UEYTUY4KORANCNFSM5M4UB6OQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn install for private module failing - unexpected end of file
Hi all, What is the current behavior? I'm currently trying to install a private module using yarn. However, I get the following error...
Read more >
Is there any harm in using NPM and Yarn in the same project?
Although a few commenters here say its ok to mix both yarn and npm on the same project, after using yarn and npm...
Read more >
Migrating from npm - Yarn
Migrating from npm should be a fairly easy process for most users. Yarn can consume the same package.json format as npm, and can...
Read more >
NodeJS - npm install errors on Windows - YouTube
Once opened, type " npm install --global windows-build-tools --vs2015" and be ... NOTE2: The tips in this video does not work for all...
Read more >
Yarn lock: how it works and what you risk without maintaining ...
If you've ever built an npm library you might have stumbled across a ... Important: When you install dependencies in your application or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found