Closed roicp closed 1 year ago
same here
this helped me under Linux and MacOS: export npm_config_legacy_peer_deps=true
Thanks @k2s your solution worked for me.
npm ERR! path R:\MPI_react\server\node_modules\printer npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm install node-gyp node-pre-gyp npm ERR! npm ERR! code ERESOLVE npm ERR! npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! npm ERR! npm ERR! While resolving: printer@0.4.0 npm ERR! npm ERR! Found: grunt@1.3.0 npm ERR! npm ERR! node_modules/grunt npm ERR! npm ERR! dev grunt@"^1.0.4" from the root project npm ERR! npm ERR! npm ERR! npm ERR! Could not resolve dependency: npm ERR! npm ERR! peer grunt@"~0.4" from grunt-node-gyp@1.0.0 npm ERR! npm ERR! node_modules/grunt-node-gyp npm ERR! npm ERR! dev grunt-node-gyp@"git://github.com/tojocky/grunt-node-gyp.git" from the root project npm ERR! npm ERR! npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! npm ERR! this command with --force, or --legacy-peer-deps npm ERR! npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! npm ERR! See C:\Users\pa319k\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! npm ERR! C:\Users\pa319k\AppData\Local\npm-cache_logs\2021-03-29T20_47_22_537Z-debug.log
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\pa319k\AppData\Local\npm-cache_logs\2021-03-29T20_47_23_334Z-debug.log
I have a very similar error. still no work around for me...
+1
Same issue here :(
try npm install printer --legacy-peer-deps
this worked for me on windows.
I still have this issue tried both npm install printer --legacy-peer-deps
and export npm_config_legacy_peer_deps=true
but with no success
Any suggestions?
I ended up using https://github.com/thiagoelg/node-printer
this is worked for me (node 14-18)
npm install printer --build-from-source --legacy-peer-deps
try
npm install printer --legacy-peer-deps
this worked for me on windows.
worked for me too on windows
Thank you helped a lot
Hi,
I just started a brand new project using
npm init -y
and tried to add the printer package usingnpm install printer
, but I always get the same error non matter what I try.I tried to
Also tried build using
electron-rebuild -f -w printer
(electron: 10.1.5 and electron-rebuild: 2.3.2) and this time I got a "not valid win32 application"My project.json looks like this
I'm running Windows 10 (build 19042) with NodeJS 15.1.0, NPM 7.0.8 and Python 3.8.0
Does anyone have any suggestions on how I should proceed to solve the problem?
Thanks in advance