docker-nativescript icon indicating copy to clipboard operation
docker-nativescript copied to clipboard

Docker build script fails at Step 9 (npm install nativescript)

Open cookingfox opened this issue 9 years ago • 2 comments
trafficstars

When I perform the following step from the instructions: docker build -t nativescript ., then the script exits with the following:

Step 9 : RUN npm install nativescript -g --unsafe-perm
 ---> Running in 38678544f3f6
npm WARN engine [email protected]: wanted: {"node":">=4.2.1 <5.0.0 || >=5.1.0 <8.0.0"} (current: {"node":"0.12.4","npm":"2.10.1"})
npm WARN deprecated [email protected]: use uuid module instead
npm ERR! tar.unpack untar error /tmp/npm-5-12dc05b1/github.com/telerik/ref-struct/tarball/v1.0.2.4
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm ERR! Linux 4.4.27-boot2docker
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nativescript" "-g" "--unsafe-perm"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! unexpected eof
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

> [email protected] preuninstall /usr/local/lib/node_modules/nativescript
> node preuninstall.js

Failed to complete all pre-uninstall steps.

npm ERR! Please include the following file with any support request:
npm ERR!     /src/npm-debug.log
The command '/bin/sh -c npm install nativescript -g --unsafe-perm' returned a non-zero code: 1

I am on OSX 10.11.6, using Docker Toolbox 1.12.3.

Any ideas? Thanks!

Abel

cookingfox avatar Nov 18 '16 10:11 cookingfox

I am on ubuntu. If anyone reading it with OSX can replicate this issue, please reply here.

oren avatar Nov 21 '16 05:11 oren

https://github.com/oren/docker-nativescript/pull/5

Please download and test mine, hopefully your issues will be resoved

formula1 avatar Dec 28 '16 03:12 formula1