NativeScript / NativeScript/nativescript-cli

npm fails install of nativescript on btrfs

未关闭
#3,880 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

to-be-checked
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 NodeSource 设置命令和 npm install -g nativescript 重现 Docker 安装流程,最好在 btrfs 上进行。从涉及 node_modules/.nativescript.DELETEsinon 的已报告 npm 重命名失败开始;当文档中的安装过程在没有该错误的情况下成功完成时,此 issue 即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, javascript, node.js
领域
cli, devops
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。