mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [v0.10.0 upgrade] Error at internal/modules/cjs/loader.js:638


From: Ben Sturmfels
Subject: Re: [v0.10.0 upgrade] Error at internal/modules/cjs/loader.js:638
Date: Mon, 04 May 2020 17:40:39 +1000
User-agent: mu4e 1.4; emacs 26.3

On Mon, 04 May 2020, Olivier Mehani wrote:

> Ahoy,
>
> I'm following the ugrade steps for v0.10.0 (including going up to Python3), 
> and
> ran into this issue in the update_extlib.sh script.
>
> I'm re-running it with a bit more debbuging:
>
>       $ sh -x ./devtools/update_extlib.sh
>       + set -e
>       + which npm
>       + which bower
>       + [ -f ./node_modules/.bin/bower ]
>       + BOWER=./node_modules/.bin/bower
>       + ./node_modules/.bin/bower install
>       internal/modules/cjs/loader.js:638
>           throw err;
>           ^
>
>       Error: Cannot find module 'internal/util/types'
>           at Function.Module._resolveFilename 
> (internal/modules/cjs/loader.js:636:15)
>           at Function.Module._load (internal/modules/cjs/loader.js:562:25)
>           at Module.require (internal/modules/cjs/loader.js:692:17)
>           at require (internal/modules/cjs/helpers.js:25:18)
>           at evalmachine.<anonymous>:44:31
>           at Object.<anonymous> 
> (/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
>           at Module._compile (internal/modules/cjs/loader.js:778:30)
>           at Object.Module._extensions..js 
> (internal/modules/cjs/loader.js:789:10)
>           at Module.load (internal/modules/cjs/loader.js:653:32)
>           at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
>
> I installed all the Python3 deps (Debian testing, nodejs 10.20.1), and have
> deinited/reinited/updated the submodules but the error stays the same.
>
> Does this look familiar to someone? Any idea how to fix?

Not to contradict - just as another data point - I modified
Dockerfile-debian-python3-sqlite to use Debian Testing and it seemed to
get past the `bower install` ok. I'll do some more testing on a real
Debian VPS.

./devtools/update_extlib.sh
Bower not found, installing via npm!
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new 
projects. Please consider Yarn and Webpack or Parcel. You can read how to 
migrate legacy project here: 
https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN saveError ENOENT: no such file or directory, open 
'/opt/mediagoblin/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 
'/opt/mediagoblin/package.json'
npm WARN mediagoblin No description
npm WARN mediagoblin No repository field.
npm WARN mediagoblin No README data
npm WARN mediagoblin No license field.

+ bower@1.8.8
added 1 package from 1 contributor and audited 1 package in 5.6s
found 0 vulnerabilities

bower leaflet#~0.7.3        not-cached 
https://github.com/Leaflet/Leaflet.git#~0.7.3
bower leaflet#~0.7.3           resolve 
https://github.com/Leaflet/Leaflet.git#~0.7.3
bower video.js#~5.20.1      not-cached 
https://github.com/videojs/video.js.git#~5.20.1
bower video.js#~5.20.1         resolve 
https://github.com/videojs/video.js.git#~5.20.1
bower jquery#~2.1.3         not-cached 
https://github.com/jquery/jquery-dist.git#~2.1.3
bower jquery#~2.1.3            resolve 
https://github.com/jquery/jquery-dist.git#~2.1.3
bower videojs-resolution-switcher#~0.4.2       not-cached 
https://github.com/kmoskwiak/videojs-resolution-switcher.git#~0.4.2
bower videojs-resolution-switcher#~0.4.2          resolve 
https://github.com/kmoskwiak/videojs-resolution-switcher.git#~0.4.2
bower jquery#~2.1.3                              download 
https://github.com/jquery/jquery-dist/archive/2.1.4.tar.gz
bower leaflet#~0.7.3                             download 
https://github.com/Leaflet/Leaflet/archive/v0.7.7.tar.gz
bower video.js#~5.20.1                           download 
https://github.com/videojs/video.js/archive/v5.20.5.tar.gz
bower videojs-resolution-switcher#~0.4.2         download 
https://github.com/kmoskwiak/videojs-resolution-switcher/archive/v0.4.2.tar.gz
bower jquery#~2.1.3                               extract archive.tar.gz
bower leaflet#~0.7.3                              extract archive.tar.gz
bower videojs-resolution-switcher#~0.4.2          extract archive.tar.gz
bower jquery#~2.1.3                              resolved 
https://github.com/jquery/jquery-dist.git#2.1.4
bower video.js#~5.20.1                            extract archive.tar.gz
bower videojs-resolution-switcher#~0.4.2         resolved 
https://github.com/kmoskwiak/videojs-resolution-switcher.git#0.4.2
bower leaflet#~0.7.3                         invalid-meta 
for:/tmp/d7850618326ce87432d1002dbca1a8a6/bower/1f6f5327375de395359cc797e6906547-119-mxF2cS/bower.json
bower leaflet#~0.7.3                         invalid-meta The "main" field 
cannot contain font, image, audio, or video files
bower leaflet#~0.7.3                         invalid-meta The "main" field 
cannot contain font, image, audio, or video files
bower leaflet#~0.7.3                         invalid-meta The "main" field 
cannot contain font, image, audio, or video files
bower leaflet#~0.7.3                         invalid-meta The "main" field 
cannot contain font, image, audio, or video files
bower leaflet#~0.7.3                         invalid-meta The "main" field 
cannot contain font, image, audio, or video files
bower leaflet#~0.7.3                         invalid-meta The "main" field has 
to contain only 1 file per filetype; found multiple .png files: 
["dist/images/layers-2x.png","dist/images/layers.png","dist/images/marker-icon-2x.png","dist/images/marker-icon.png","dist/images/marker-shadow.png"]
bower leaflet#~0.7.3                             resolved 
https://github.com/Leaflet/Leaflet.git#0.7.7
bower video.js#~5.20.1                           resolved 
https://github.com/videojs/video.js.git#5.20.5
bower jquery#~2.1.3                               install jquery#2.1.4
bower videojs-resolution-switcher#~0.4.2          install 
videojs-resolution-switcher#0.4.2
bower leaflet#~0.7.3                              install leaflet#0.7.7
bower video.js#~5.20.1                            install video.js#5.20.5

jquery#2.1.4 extlib/jquery

videojs-resolution-switcher#0.4.2 extlib/videojs-resolution-switcher

leaflet#0.7.7 extlib/leaflet

video.js#5.20.5 extlib/video.js




reply via email to

[Prev in Thread] Current Thread [Next in Thread]