I am facing some challenges while attempting to install my Ionic App through the registry along with its dependencies.
I have been using npm i --loglevel verbose
command, and my ~/.npmrc
file is configured as follows:
//nexus.OMMITED.com/repository/:_auth=OMMITED
registry=http://nexus.OMMITED.com/repository/npm-all
always-auth=true
Initially, everything seems to be progressing smoothly until we encounter non-registry dependencies. At that point, an authorization error halts the process.
You can view a detailed log of the command here:
The issue arises specifically with
@angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="137b67676353253d223d21">[email protected]</a>
in this case, although it could vary between different @angular
or @ionic-native
dependencies.
Here's what I have attempted so far...
- Switching
always-auth
value betweentrue
andfalse
- Executing commands as Super User
- Experimenting with different tokens
- Using
_authToken
instead of_auth
- Extensively searching online for solutions, only to discover my problem is quite unique
with bothnpm login --registry=http://nexus.OMMITED.com/repository/npm-all
--auth=TOKEN_OMITTED
and--authToken=TOKEN_OMITTED
. However, npm issues a warning stating
and then requests a username. My username happens to be an email address, causing the errornpm WARN invalid config auth-type="TOKEN_OMITTED"
and leading to endless prompts for another username.npm WARN Name may not contain non-url-safe chars