热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

crossenvnotfound

Ifollowedtheinstructionstorundockerfordevelopment.Iran

I followed the instructions to run docker for development. I ran

1
docker-compose -f docker-compose-development.yml build

and it succeeded, but then

1
docker-compose -f docker-compose-development.yml up

failed because one of the npm scripts was looking for

1
cross-env

and couldn't find it. Here's the trace:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Williams-MacBook-Pro:mern-starter William$ docker-compose -f docker-compose-development.yml up

Starting mernstarter_db_1

Creating mernstarter_web_1

Attaching to mernstarter_db_1, mernstarter_web_1

db_1   | 2016-06-22T17:42:58.921+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=e0f5427f51b1

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] db version v3.2.7

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] git version: 4249c1d2b5999ebbf1fdf3bc0e0e3b3ff5c0aaf2

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] allocator: tcmalloc

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] modules: none

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] build environment:

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten]     distmod: debian71

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten]     distarch: x86_64

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten]     target_arch: x86_64

db_1   | 2016-06-22T17:42:58.922+0000 I CONTROL  [initandlisten] options: {}

db_1   | 2016-06-22T17:42:58.926+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten]

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten]

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'

db_1   | 2016-06-22T17:42:58.975+0000 I CONTROL  [initandlisten]

db_1   | 2016-06-22T17:42:58.976+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'

db_1   | 2016-06-22T17:42:58.976+0000 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker

db_1   | 2016-06-22T17:42:58.990+0000 I NETWORK  [initandlisten] waiting for connections on port 27017

web_1  | npm info it worked if it ends with ok

web_1  | npm info using npm.9.5

web_1  | npm info using node.2.2

web_1  | npm info lifecycle mern-starter.0.0~prestart: mern-starter.0.0

web_1  | npm info lifecycle mern-starter.0.0~start: mern-starter.0.0

web_1  |

web_1  | > mern-starter.0.0 start /usr/src/app

web_1  | > cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js

web_1  |

web_1  | sh: 1: cross-env: not found

web_1  |

web_1  | npm info lifecycle mern-starter.0.0~start: Failed to exec start script

web_1  | npm ERR! Linux 4.4.13-moby

web_1  | npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"

web_1  | npm ERR! node v6.2.2

web_1  | npm ERR! npm  v3.9.5

web_1  | npm ERR! file sh

web_1  | npm ERR! code ELIFECYCLE

web_1  | npm ERR! errno ENOENT

web_1  | npm ERR! syscall spawn

web_1  | npm ERR! mern-starter.0.0 start: `cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js`

web_1  | npm ERR! spawn ENOENT

web_1  | npm ERR!

web_1  | npm ERR! Failed at the mern-starter.0.0 start script 'cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js'.

web_1  | npm ERR! Make sure you have the latest version of node.js and npm installed.

web_1  | npm ERR! If you do, this is most likely a problem with the mern-starter package,

web_1  | npm ERR! not with npm itself.

web_1  | npm ERR! Tell the author that this fails on your system:

web_1  | npm ERR!     cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js

web_1  | npm ERR! You can get information on how to open an issue for this project with:

web_1  | npm ERR!     npm bugs mern-starter

web_1  | npm ERR! Or if that isn't available, you can get their info via:

web_1  | npm ERR!     npm owner ls mern-starter

web_1  | npm ERR! There is likely additional logging output above.

web_1  | npm WARN Local package.json exists, but node_modules missing, did you mean to install?

web_1  |

web_1  | npm ERR! Please include the following file with any support request:

web_1  | npm ERR!     /usr/src/app/npm-debug.log

db_1   | 2016-06-22T17:43:00.260+0000 I NETWORK  [initandlisten] connection accepted from 172.17.0.1:50694 #1 (1 connection now open)

mernstarter_web_1 exited with code 1

该提问来源于开源项目:Hashnode/mern-starter

Just merge PR #246





   



推荐阅读
  • 十一、构建我们自己的包在本章中,我们将学习如何构建自己的包。编写包可以让我们创建可以在许多应用 ... [详细]
  • 系统管理部分软件包管理进程管理服务管理磁盘管理系统管理之软件包管理软件包的安装方式yumapt方式rpmdpkg方式编译安装方式二进制安装方式rpm安装方式增删改查安装:-ivh查 ... [详细]
  • 如何运行vue项目(github项目),Go语言社区,Golang程序员人脉社 ... [详细]
  • 对mysql的总结与反思_一次DB故障引起的反思和MySQL Operator选型
    前言在一次数据库故障后,我们发现业务库会根据业务的等级会划分多个MySQL实例,许多业务库会同时属于一个MySQL实例,当一个库引发问题后 ... [详细]
  • Linux如何安装Mongodb的详细步骤和注意事项
    本文介绍了Linux如何安装Mongodb的详细步骤和注意事项,同时介绍了Mongodb的特点和优势。Mongodb是一个开源的数据库,适用于各种规模的企业和各类应用程序。它具有灵活的数据模式和高性能的数据读写操作,能够提高企业的敏捷性和可扩展性。文章还提供了Mongodb的下载安装包地址。 ... [详细]
  • React 小白初入门
    推荐学习:React官方文档:https:react.docschina.orgReact菜鸟教程:https:www.runoob.c ... [详细]
  • 互联网世界 9 种基本的商业模式
    互联网世界9种基本的商业模式一个商业模式是运行一个公司的方法;通过该模式的运作,一个公司能维持自己的生存,就是说,能有收益。商业模式意味着一个公司是如何通过在价值链中定位自己,从而获 ... [详细]
  • 突然觉得服务器ssh密码登录总是浪费一定量的时间,就想试试用sshKey进行登录。生成服务器sshkey和本地sshkey$ssh-keygen在服务器上生成一个authorize ... [详细]
  • 一、如果使用默认的1521端口,让实例自动注册到该监听上,那么local_listener无需设置,listener.ora文件按照正常方 ... [详细]
  • 一、域名解析记录说明记录类型A:用来指定域名的IPv4地址(如:8.8.8.8),如果需要将域名指向一个IP ... [详细]
  • 本文整理了Java中com.atlassian.scheduler.config.JobConfig类的一些代码示例,展示了JobConfig ... [详细]
  • 如何配置mysql双主_MySQL双主配置_MySQL
    准备环境:服务器操作系统为RHEL6.4x86_64,为最小化安装。主机A和主机B均关闭防火墙和SELINUX,IP地址分别为192.168.131.1 ... [详细]
  • 搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的详细步骤
    本文详细介绍了搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的步骤,包括环境说明、相关软件下载的地址以及所需的插件下载地址。 ... [详细]
  • 本文讨论了在数据库打开和关闭状态下,重新命名或移动数据文件和日志文件的情况。针对性能和维护原因,需要将数据库文件移动到不同的磁盘上或重新分配到新的磁盘上的情况,以及在操作系统级别移动或重命名数据文件但未在数据库层进行重命名导致报错的情况。通过三个方面进行讨论。 ... [详细]
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
author-avatar
冰凌清泽_712
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有