-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble running "jspm install" under npm postinstall on Docker #865
Comments
I'm really not sure what to suggest here - I think it does sound like a permissions issue on the machine to do with the npm usage. Perhaps you need to run with higher / different privileges or something like that? Others may have better suggestions here too. |
Well, I made some progress and furthered my understanding of npm some. Turns out setting The problems I was running into having this config set are due to how the official Node Docker image is setup, and my misunderstanding of the Issue using
|
Btw, I recommended joyant/docker-node update their I also tested to see if I might log an issue with npm to see if they have any explanation / solution to needing to run |
Seems like the |
I wasn't sure whether this issue should be filed under jspm, npm, or Docker, but I'm starting here :)
I've ran into an issue with running
jspm install
underpostinstall
for npm when building a Docker imageWhen I perform a
docker build .
andpostinstall
runs the following warning is logged:The rest of the build continues and finishes successfully, but as expected, I have no
jspm_packages
directory or resources.Here is a snippet of my
package.json
package.json
I'm not installing jspm globally but relying on npm to add
jspm
to my path. I've also tried./node_modules/.bin/jspm install
with no change.Here is my simple
Dockerfile
using the official base imageWhile researching the issue I found npm/npm#3497. I attempted to add the
unsafe-perm = true
to both mypackage.json
:as well as created a
.npmrc
file at the root of the project (sibling topackage.json
) with:but neither had any affect with the issue.
The text was updated successfully, but these errors were encountered: