Error on npm run build

62 views
Skip to first unread message

Frank Bennett

unread,
Mar 2, 2023, 11:56:24 PM3/2/23
to zotero-dev
With the latest stable node and npm, I'm getting an error on npm i; npm run build:

Error: Failed while processing test/resource/mocha/test/integration/fixtures/esm/test-that-uses-dir-cjs-require.fixture.js: I/O error: Error: EISDIR: illegal operation on a directory, read
$ node --version
v18.14.2
$ npm --version
9.6.0

The page linked in the test-that-uses-dir-cjs-require.fixture.js doesn't seem relevant, as it's not the test that fails, but the attempt to run it by calling the directory. I'm obviously missing something. Is there a configuration setting for node that will get it to implicitly run a child index.js when the parent directory is called?

Frank Bennett

unread,
Mar 3, 2023, 10:23:29 AM3/3/23
to zotero-dev
I think this was me misinterpreting the console chatter. npm shows this error immediately before the final build operations, which take some time to run and produce no chatter. If the script is left to run, it does complete the build. If I understand correctly, the testing error in mocha seems to be irrelevant.

Separately, when setting things up for a clean start by removing package-lock.json and node_modules before running "npm install", npm failed with dependency errors around react. I overrode that with npm install --force. Hoping that doesn't cause problems of its own.

Sorry for this additional traffic. Still getting accustomed to the environment.

--
You received this message because you are subscribed to a topic in the Google Groups "zotero-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zotero-dev/GlULfvHsTWo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zotero-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zotero-dev/2533a2b5-aca1-4ee5-aa59-971cf3991c24n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages