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
{{ message }}
Repository navigation
Node-gyp config instructions are going to stop working soon #3192
npm warn Unknown user config "devdir". This will stop working in the next major version of npm.
Googling will lead you to npm/cli#8153 where the npm folks are very adamant that they do not want global node package installation related configuration in your .npmrc anymore, and will break it on purpose soon.
Switching to an env var, the only other method of configuring node-gyp in the docs gives a similar warning:
npm warn Unknown env config "devdir". This will stop working in the next major version of npm.
So node-gyp needs a new place for config that npm cannot break.
Activity
lukekarrys commentedon Aug 11, 2025
Closing as a duplicate of
#3156#3163