Skip to content
Discussion options

You must be logged in to vote

strict-allow-scripts is not the v12 default and won't be. The v12 default is softer: an install script you haven't approved gets skipped, you get a warning, and the install still succeeds. So npm install -D esbuild just works. esbuild lands in node_modules, its postinstall is skipped, you see a warning saying so. No failure, and no chicken-and-egg.

The wall is coming entirely from strict-allow-scripts=true. That turns the skip into a hard error that fires before npm writes anything, so esbuild never gets installed. That's why approve-scripts esbuild can't find it afterward. There's nothing on disk to approve yet.

The other two are doing what they should. --allow-scripts is blocked in proj…

Replies: 7 comments 20 replies

This comment has been hidden.

Comment options

You must be logged in to vote
2 replies
@rvillane
Comment options

@JamieMagee
Comment options

Comment options

You must be logged in to vote
1 reply
@VladSez
Comment options

Comment options

You must be logged in to vote
1 reply
@JamieMagee
Comment options

Comment options

You must be logged in to vote
5 replies
@JamieMagee
Comment options

Answer selected by leobalter
@tbroyer
Comment options

@JamieMagee
Comment options

@marypcbuk
Comment options

@JamieMagee
Comment options

Comment options

You must be logged in to vote
11 replies
@kimballa
Comment options

@vbjay
Comment options

@vbjay
Comment options

@kimballa
Comment options

@vbjay
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Product Feedback Share your thoughts and suggestions on GitHub features and improvements npm Discussions around programming langages, open source and software development source:ui Discussions created via Community GitHub templates