NativeScript / NativeScript/nativescript-cli

npm fails install of nativescript on btrfs

Open
#3,880 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

to-be-checked
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Docker installation sequence using the NodeSource setup command and npm install -g nativescript, preferably on btrfs. Start with the reported npm rename failure involving node_modules/.nativescript.DELETE and sinon; the issue is done when the documented installation completes successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, node.js
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.