hi, neither npm install nor yarn add all works for me !!
See original GitHub issuehi 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:
- Created 2 years ago
- Comments:10
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:
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: