We’re rewarding the question askers & reputations are being recalculated! Read more.
2 added 276 characters in body
source | link

Is there a way I can set a custom NPM repository to be used by JSS when running a jss deploy? I have a package dependency which is hosted in a dev repository (for the moment) and this is breaking my jss deploy...

cross-env-shell PUBLIC_URL=$npm_package_config_sitecoreDistPath "react-scripts build"

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Failed to compile.
Cannot find module: '@hsantos/hsantos-module'. Make sure this package is installed.
You can install this package by running: npm install @hsantos/hsantos-module.

However, when I run npm config set @hsantos:registry https://npm.dev.cloud.hsantos.com + npm install @hsantos/hsantos-module the module is installed properly...

That leads me to think that during the jss deploy somehow the npm install is called but my custom NPM repository https://npm.dev.cloud.hsantos.com is not being taken into account.

Is there a way I can set a custom NPM repository to be used by JSS when running a jss deploy? I have a package dependency which is hosted in a dev repository (for the moment) and this is breaking my jss deploy...

Cannot find module: '@hsantos/hsantos-module'. Make sure this package is installed.
You can install this package by running: npm install @hsantos/hsantos-module.

However, when I run npm config set @hsantos:registry https://npm.dev.cloud.hsantos.com + npm install @hsantos/hsantos-module the module is installed properly...

That leads me to think that during the jss deploy somehow the npm install is called but my custom NPM repository https://npm.dev.cloud.hsantos.com is not being taken into account.

Is there a way I can set a custom NPM repository to be used by JSS when running a jss deploy? I have a package dependency which is hosted in a dev repository (for the moment) and this is breaking my jss deploy...

cross-env-shell PUBLIC_URL=$npm_package_config_sitecoreDistPath "react-scripts build"

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Failed to compile.
Cannot find module: '@hsantos/hsantos-module'. Make sure this package is installed.
You can install this package by running: npm install @hsantos/hsantos-module.

However, when I run npm config set @hsantos:registry https://npm.dev.cloud.hsantos.com + npm install @hsantos/hsantos-module the module is installed properly...

That leads me to think that during the jss deploy somehow the npm install is called but my custom NPM repository https://npm.dev.cloud.hsantos.com is not being taken into account.

1
source | link

Can I set a custom NPM repository to be used by JSS?

Is there a way I can set a custom NPM repository to be used by JSS when running a jss deploy? I have a package dependency which is hosted in a dev repository (for the moment) and this is breaking my jss deploy...

Cannot find module: '@hsantos/hsantos-module'. Make sure this package is installed.
You can install this package by running: npm install @hsantos/hsantos-module.

However, when I run npm config set @hsantos:registry https://npm.dev.cloud.hsantos.com + npm install @hsantos/hsantos-module the module is installed properly...

That leads me to think that during the jss deploy somehow the npm install is called but my custom NPM repository https://npm.dev.cloud.hsantos.com is not being taken into account.