# JSPM do not work inside the docker service

**URL:** <https://discuss.circleci.com/t/jspm-do-not-work-inside-the-docker-service/3844>\
**Category:** Build Environment\
**Tags:** nodejs, docker\
**Created:** [May 6, 2016, 7:50am UTC](https://discuss.circleci.com/t/jspm-do-not-work-inside-the-docker-service/3844 "2016-05-06T07:50:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![semeyon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/semeyon/32/2807_2.png) [@semeyon](https://discuss.circleci.com/u/semeyon)\
**Post date:** [May 6, 2016, 7:50am UTC](https://discuss.circleci.com/t/jspm-do-not-work-inside-the-docker-service/3844/1 "2016-05-06T07:50:33Z")

</div>

Hello!

I have working project using docker and docker-compose locally. But inside the circleci its does not build the second service on the “jspm install” command, it throw:

warn Error on download for npm:babel-runtime  
Error: EINVAL: invalid argument, chown '/root/.jspm/packages/npm/babel-runtime@5.8.38/package.json’  
at Error (native)

err Error downloading npm:babel-runtime.

warn Installation changes not saved.  
ERROR: Service ‘frontend’ failed to build: The command ‘/bin/sh -c mkdir ~/.jspm && chmod 666 ~/.jspm && cp ./jspm-config ~/.jspm/config && chmod 666 ~/.jspm/config && jspm install’ returned a non-zero code: 1

Inside the circleci I’m using docker 1.10.0

Docker file with an issue:

FROM node:6.0.0

WORKDIR /stapp  
RUN apt-get update && apt-get install -y python3 && apt-get clean  
RUN npm install -g jspm  
RUN npm install -g gulp  
RUN npm install -g typings  
ADD package.json /stapp/package.json  
ADD tsconfig.json /stapp/tsconfig.json  
ADD typings.json /stapp/typings.json

RUN npm install

ADD . /stapp

RUN typings install  
RUN mkdir ~/.jspm && chmod 666 ~/.jspm && cp ./jspm-config ~/.jspm/config && chmod 666 ~/.jspm/config && jspm install  
RUN jspm update  
RUN gulp deploy

EXPOSE 8080

WORKDIR /stapp/target/production

CMD [“python3”, “-m”, “http.server”, “8080”]

Also I have aufs locally, circleci btrfs.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![tamird](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tamird/32/1512_2.png) [@tamird](https://discuss.circleci.com/u/tamird)\
**Post date:** [June 11, 2016, 1:37pm UTC](https://discuss.circleci.com/t/jspm-do-not-work-inside-the-docker-service/3844/2 "2016-06-11T13:37:31Z")

</div>

Seeing the same issue in [https://circleci.com/gh/cockroachdb/cockroach/tree/pull%2F7165](https://circleci.com/gh/cockroachdb/cockroach/tree/pull%2F7165)

---

<div class="post-metadata">

**Author:** ![tamird](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tamird/32/1512_2.png) [@tamird](https://discuss.circleci.com/u/tamird)\
**Post date:** [June 13, 2016, 12:27pm UTC](https://discuss.circleci.com/t/jspm-do-not-work-inside-the-docker-service/3844/3 "2016-06-13T12:27:11Z")

</div>

Looks like this is [https://github.com/jspm/jspm-cli/issues/1902](https://github.com/jspm/jspm-cli/issues/1902), which is caused by [https://github.com/npm/node-tar/issues/39](https://github.com/npm/node-tar/issues/39), which needs an upstream change [https://github.com/npm/fstream/issues/52](https://github.com/npm/fstream/issues/52).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/jspm-do-not-work-inside-the-docker-service/3844/4 "2018-06-18T11:38:19Z")

</div>


