npm install -g @loopback/clilb4 appIt throws me an error:
assert.js:386
throw err;
^
AssertionError [ERR_ASSERTION]: *** setRootDir: Intl dir not found under: C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli
at Object.setRootDir (C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli\node_modules\strong-globalize\lib\helper.js:80:5)
at Function.SetRootDir (C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli\node_modules\strong-globalize\lib\strong-globalize.js:63:19)
at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli\lib\globalize.js:11:4)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Module.require (internal/modules/cjs/loader.js:1036:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli\lib\base-generator.js:16:11) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
A new project creating process should get started
My system:
Windows 10
NodeJS v13.10.1
npm 6.13.7
@bd100b, thanks for reporting this issue. We've published @loopback/[email protected] to fix this problem. Could you please give it a try? Thanks!
@dhmlau thanks for your help, now it throws me another error:
internal/modules/cjs/loader.js:979
throw err;
^
Error: Cannot find module 'semver'
Require stack:
- C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli\bin\cli-main.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:976:15)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Module.require (internal/modules/cjs/loader.js:1036:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\@loopback\cli\bin\cli-main.js:10:16)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\@loopback\\cli\\bin\\cli-main.js'
]
}
Note: The folder intl is created now
@dhmlau Sory, my bad. I've uninstalled @loopback/cli and then installed it again like: npm install -g @loopback/[email protected], reopened my IDE and run lb4 app and now it works. Thanks for the fix.
I will close this issue as resolved. Thanks!
Most helpful comment
@dhmlau Sory, my bad. I've uninstalled @loopback/cli and then installed it again like:
npm install -g @loopback/[email protected], reopened my IDE and runlb4 appand now it works. Thanks for the fix.