Picture of Jason Wilson
upgrade node.js causing errors
by Jason Wilson - Sunday, 24 October 2021, 9:56 PM
 

When I run "node server", I got the message to run node upgrade.js.

After running that, I get the following error:

---

$ node upgrade.js
(node:10824) Warning: Accessing non-existent property 'count' of module exports
inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10824) Warning: Accessing non-existent property 'findOne' of module export
s inside circular dependency
(node:10824) Warning: Accessing non-existent property 'remove' of module exports
inside circular dependency
(node:10824) Warning: Accessing non-existent property 'updateOne' of module expo
rts inside circular dependency

This script will update the Adapt authoring tool and/or Adapt Framework. Would y
ou like to continue?
? Continue? Yes
? Update automatically? Yes

Software updates found.

\temp\6170907a135eb321607d03be\adapt_framework switched to revision v5.17.3
Failed to upgrade \temp\6170907a135eb321607d03be\adapt_framework to v5.17.3
ERROR: error: pathspec 'v6.0.3' did not match any file(s) known to git
child_process.js:866
throw err;
^

Error: Command failed: git checkout v6.0.3
at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at Object.<anonymous> (C:\Users\User\Desktop\test\adapt_authoring\temp\61709
07a135eb321607d03be\adapt_framework\gitmodules.js:67:16)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js
:76:12)
at internal/main/run_main_module.js:17:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 13464,
stdout: null,
stderr: null
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! adapt_framework@5.17.3 preinstall: `node gitmodules.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the adapt_framework@5.17.3 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2021-10-24T21_42_34_9
39Z-debug.log


Upgrade was unsuccessful. Please check the console output.

---

Now when I run node server, no upgrades are mentioned, yet when I try to rebuild to preview or publish a course, I get the following error:

Command failed: grunt server-build:prod --outputdir=courses\6170907a135eb321607d03be\61709114dc4d1e3b401c6a7d\build --theme=617090ee135eb321607d03d9 --menu=adapt-contrib-boxMenu

---

I have tried this on two separate installs on two different PC's, both with the same issue.

Picture of Oliver Foster
Re: upgrade node.js causing errors
by Oliver Foster - Monday, 25 October 2021, 8:33 AM
 

It's related to this issue: https://github.com/adaptlearning/adapt_authoring/issues/2566

I need to see the contents of \temp\6170907a135eb321607d03be\adapt_framework and \temp\6170907a135eb321607d03be\adapt_framework\src

Could I have a screenshot please?

 

 

Picture of Jason Wilson
Re: upgrade node.js causing errors
by Jason Wilson - Monday, 25 October 2021, 8:54 PM
 

Hi Oliver - thanks for the info. Here are the requested screenshots.



Picture of Oliver Foster
Re: upgrade node.js causing errors
by Oliver Foster - Tuesday, 26 October 2021, 6:45 AM
 

What's in src/core?

Picture of Oliver Foster
Re: upgrade node.js causing errors
by Oliver Foster - Tuesday, 26 October 2021, 7:32 AM
 

If you could send me a screenshot of src/core and then try using fw branch issue/3252 for an install that'd be really useful. I have a theory as to what's going wrong, but it's more of a guess at the moment.

These are the changes https://github.com/adaptlearning/adapt_framework/pull/3253/files

Here is the issue https://github.com/adaptlearning/adapt_framework/issues/3252