Forum Discussion
allensmith81
Boss
Well now I am in the same place as the last poster.. Install finished (thanks RobertT ) but li create-project failes as it says primordials is not defined
any thoughts?
PS C:\Users\v-allens\Plugin> li create-project
fs.js:36
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:36:5
at req_ (C:\Users\v-allens\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\v-allens\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\natives\index.js:55:10)
at Object.<anonymous> (C:\Users\v-allens\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
allensmith81
5 years agoBoss
I fixed the Primordials issue.
This is caused by an incompatibility between NodeJS v12 and graceful-fs.
The easiest fix is to download NVM for Windows and then run the following commands once installed:
nvm install 11.15.0
nvm use 11.15.0
Once your back on node 11 you should be able to run li create-project with no problems
Related Content
- 7 years ago