Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js “弹性豆茎”问题;50npm.sh不合格”字样;_Node.js_Amazon Web Services_Npm_Amazon Elastic Beanstalk - Fatal编程技术网

Node.js “弹性豆茎”问题;50npm.sh不合格”字样;

Node.js “弹性豆茎”问题;50npm.sh不合格”字样;,node.js,amazon-web-services,npm,amazon-elastic-beanstalk,Node.js,Amazon Web Services,Npm,Amazon Elastic Beanstalk,在我的一个环境中部署某些代码时遇到问题 Creating application version archive "app-aa68e-170213_103330". Uploading PAS-API/app-aa68e-170213_103330.zip to S3. This may take a while. Upload Complete. INFO: Environment update is starting. INFO

在我的一个环境中部署某些代码时遇到问题

Creating application version archive "app-aa68e-170213_103330".
Uploading PAS-API/app-aa68e-170213_103330.zip to S3. This may take a while.
Upload Complete.
INFO: Environment update is starting.                               
INFO: Deploying new version to instance(s).                         
ERROR: Failed to run npm install. Snapshot logs for more details.   
ERROR: [Instance: i-0ee97a5c7bcab8d51] Command failed on instance. Return code: 1 Output: (TRUNCATED)..."/opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install
    raise e
subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v4.4.6-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status 1. 
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) 'i-0ee97a5c7bcab8d51'. Aborting the operation.

当服务器上运行
npm install
时,部署似乎失败了。

当我检查
包.json
时,似乎有些DEP是作为tarball而不是版本号添加的,这意味着当它安装并保存时,它看起来是这样的:

"basic-auth": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.4.tgz"
而不是

"basic-auth": "^1.1.0",

这在eb实例上的npm安装上失败了,看起来它现在可以工作了。

当我检查
包时。json
似乎将一些DEP添加为tarball而不是版本号,这意味着当它安装并保存时,它看起来是这样的:

"basic-auth": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.4.tgz"
而不是

"basic-auth": "^1.1.0",
这在eb实例上的npm安装上失败了,看起来现在可以正常工作了