Open Zacharyprime opened 2 years ago
I was running commands with && so I didn't realize this until now, but these errors occur even when installing individual packages like:
npm install browserfy
npm install gulp
etc.
I believe I've seen a similar issue before. I recall there being an issue with installing npm through Aptitude, so my next step is to try to install npm through whatever the official documentation suggests.
The behavior above makes me think this is a problem with npm itself and not harrogate
Attempt 1:
#Install node
sudo curl https://deb.nodesource.com/setup_18.x | sudo bash
sudo apt-get install nodejs -y
-same error-
I did not change anything from my last comment, but today it is working. Maybe it just needed a reboot.
I'm going to leave this open until I do another pass through of the build a wombat recipe so I can be certain that this is how we want to do it.
I've been past that last error. These are the versions that I have npm install working on:
npm: v8.9.0
nodejs: v18.2.0
Gulp:
CLI version: v2.3.0
Local version: v4.0.2
Now I am getting the following error (after having to fix the package.json to update bufferutil and utf-8-validate to latest):
fs is not a valid package anymore, so we should replace it with an fs alternative like graceful-fs
Replace references to fs.js with graceful-fs equivalent: https://www.npmjs.com/package/graceful-fs
Files Affected: https://github.com/kipr/harrogate/search?q=fs
I don't have much information as to why this is happening yet, but this is the next roadblock to getting harrogate working on a fresh image of RPiOS.
See Errors
```bash pi@raspberrypi:~/harrogate $ npm install npm ERR! code 1 npm ERR! path /home/pi/harrogate/node_modules/bufferutil npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/pi/harrogate/node_modules/bufferutil/build' npm ERR! CXX(target) Release/obj.target/bufferutil/src/bufferutil.o npm ERR! make: Leaving directory '/home/pi/harrogate/node_modules/bufferutil/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@12.22.5 | linux | arm npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/share/nodejs/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/pi/harrogate/node_modules/bufferutil/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/share/nodejs/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/include/nodejs/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/usr/include/nodejs', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/share/nodejs/node-gy p', npm ERR! gyp info spawn args '-Dnode_lib_file=/usr/include/nodejs/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/pi/harrogate/node_modules/bufferutil', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../src/bufferutil.cc:25:30: error: ‘v8::Handle’ has not been declared npm ERR! 25 | static void Initialize(v8::Handle