I have a npm package (npm v 5.5.1 and node version is 9.2.0). If i run npm install
on local machine then the postinstall
defined in package.json is executed but if I run the same command RUN npm install
in a Docker file i.e. when the command is run inside the container then the postinstall
step is not executed. Any inputs what could be the issue here ?
相关问题
- Docker task in Azure devops won't accept "$(pw
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- Unable to run mariadb when mount volume
- Failed at the electron@1.8.2 postinstall script
Try running install with
--unsafe-perm
option. When running as root, npm won't run any scripts.Alternatively, create a user in the Dockerfile and switch to that user: