Closed piotr-cz closed 4 years ago
Thanks for the PR, @piotr-cz! I had indeed not tested on Windows. This change makes perfect sense and I've verified that it still works as intended also on Linux. I will merge and release 1.0.4 shortly.
Just a note: as npm install
is executed in target directory, it's also possible to use dedicated .npmrc
file there.
After installing this plugin the
sls package
command gets stuck at theExcluding development dependencies...
state.This happens for both my project and example application bundled with this repo:
I'm using Windows OS and assuming that it happens only on this OS as there are no similiar bug reports.
I found out that the problem may be due to the working directory where
npm install
is being run.When it's executed with the
--prefix
option, npm adds a symbolic link inside the layers node_modules that points to the service directory at it seems that this is where the process gets stuck:When switching to cwd instead of --prefix, it doesn't get stuck anymore.