You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using AWS CodeArtifact as a npm registry and it fails to install esbuild. More specifically, the install of esbuild itself succeeds, but the execution of install.js defined in 'postinstall' fails. In install.js, node's child_process executes another npm install, but at this time, '_authToken' defined in the .npmrc placed in the project does not take effect. (status 401 is returned.) On the other hand, the registry specification in the .npmrc is still enabled in child_process, so it seems that the .npmrc is not completely ignored.
Self solved. I don't know the detailed cause, but if I install esbuild-windows-64, which was failed to install yesterday because of unauthorized error, alone beforehand, and create a cache in CodeArtifact, then esbuild can be installed successfully even on a brand new project.
I still don't know why creating the cache solved the 401 error.
I'm using AWS CodeArtifact as a npm registry and it fails to install esbuild. More specifically, the install of esbuild itself succeeds, but the execution of
install.js
defined in 'postinstall' fails. Ininstall.js
, node'schild_process
executes anothernpm install
, but at this time, '_authToken' defined in the.npmrc
placed in the project does not take effect. (status 401 is returned.) On the other hand, the registry specification in the.npmrc
is still enabled inchild_process
, so it seems that the.npmrc
is not completely ignored.My
.npmrc
is defined as follows:I think this is not a problem specific to AWS CodeArtifact, but a common problem with private registries that require 'authToken'.
Has anyone else experienced a similar case?
Also, is there any solution to this problem?
Thanks in advance.
The text was updated successfully, but these errors were encountered: