NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 195 forks source link

npm fails install of nativescript on btrfs #3880

Open NickIliev opened 6 years ago

NickIliev commented 6 years ago

From @KatsuoRyuu on September 10, 2018 11:33

Did you verify this is a real problem by searching the [NativeScript Forum]

Yes

Tell us about the problem

My docker automated build server is failing to install NativeScript

npm install -g nativescript

Which platform(s) does your issue occur on?

NPM

Please provide the following version numbers that your issue occurs with:

Fails on nativescript install through NPM

Please tell us how to recreate the issue in as much detail as possible.

Create docker container Install node using curl -sL https://deb.nodesource.com/setup_10.x | bash - run npm install -g nativescript

Output:

npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN nativescript No description
npm WARN nativescript No repository field.
npm WARN nativescript No README data
npm WARN nativescript No license field.

npm ERR! path /node_modules/.nativescript.DELETE/node_modules/sinon
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/node_modules/.nativescript.DELETE/node_modules/sinon' -> '/node_modules/nativescript/node_modules/sinon'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-09-10T11_06_17_384Z-debug.log

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Part of installation of nativescript so no code needed.

Copied from original issue: NativeScript/NativeScript#6252

KatsuoRyuu commented 6 years ago

Just a bit more info as I'm trying to work around this:

Running the container with a mounted ext3 volume and and install nativescript onto this volume in the container solves the problem. Installing onto BTRFS causes failure on the system. Other packages installs fine, as i have tried to install some of the NativeScript dependencies manually.

Building the Dockerfile on a ext3/4 system is possible without trouble, after the build nativescript seems to be running fine