augmented search npm Jahia 8

No matching version found for @jahia/search-ui-jahia-connector

Question

We build an Augmented Search custom search UI for our project, and we have a missing dependency to build it.

Our custom UI (equivalent of 'augmented-search-ui' original module) have the following dependency in the package.json  :

"@jahia/search-ui-jahia-connector": "^1.0.0",

When trying to compile, we have the following error:

We build a Augmented Search custom search UI for our project.
We started on V1.1.0 of AS and we have a missing dependencies to build it.

Our custom UI (equivalent of 'augmented-search-ui' original module) have a dependency to :

"@jahia/search-ui-jahia-connector": "^1.0.0",
in package.json 

but during compilation we have such error:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   '@jahia/search-ui-jahia-connector'
1 verbose cli ]
2 info using npm@6.14.6
3 info using node@v12.18.3
4 verbose npm-session 9bf796eea900a816
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/@jahia%2fsearch-ui-jahia-connector 8ms (from cache)
8 silly registry:manifest no matching version for @jahia/search-ui-jahia-connector@^1.0.0 in the cache. Forcing revalidation.
9 http fetch GET 304 https://registry.npmjs.org/@jahia%2fsearch-ui-jahia-connector 149ms (from cache)
10 silly fetchPackageMetaData error for @jahia/search-ui-jahia-connector@^1.0.0 No matching version found for @jahia/search-ui-jahia-connector@^1.0.0.
11 timing stage:rollbackFailedOptional Completed in 1ms
12 timing stage:runTopLevelLifecycles Completed in 675ms
13 verbose type range
14 verbose stack @jahia/search-ui-jahia-connector: No matching version found for @jahia/search-ui-jahia-connector@^1.0.0.
14 verbose stack     at pickManifest (/usr/local/lib/node_modules/npm/node_modules/npm-pick-manifest/index.js:122:13)
14 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:43:18
14 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
14 verbose stack     at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:517:31)
14 verbose stack     at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:574:18)
14 verbose stack     at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:619:10)
14 verbose stack     at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:699:18)
14 verbose stack     at _drainQueueStep (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:138:12)
14 verbose stack     at _drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:131:9)
14 verbose stack     at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:147:5)
14 verbose stack     at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
14 verbose stack     at processImmediate (internal/timers.js:456:21)
15 verbose cwd /Users/jahia/projects/as-search
16 verbose Darwin 19.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "@jahia/search-ui-jahia-connector"
18 verbose node v12.18.3
19 verbose npm  v6.14.6
20 error code ETARGET
21 error notarget No matching version found for @jahia/search-ui-jahia-connector@^1.0.0.
22 error notarget In most cases you or one of your dependencies are requesting
22 error notarget a package version that doesn't exist.
23 verbose exit [ 1, true ]

 

 

Cause

NPM is not able to find the jahia registery server

Solution

You need to create a file called .npmrc in the same directory as your package.json file with the following content

@jahia:registry=https://npm.jahia.com