npm安装问题与流星自定义部署

时间:2021-09-26 16:52:54

I have used meteor build command to create a deployment bundle .tar.gz which is plain Node.js application.

我使用meteor build命令创建了一个部署包.tar.gz,它是普通的Node.js应用程序。

I extract bundle and run following command to run app:

我提取bundle并运行以下命令来运行app:

cd programs/server && npm install

But i am not available to run npm install, it is returning message 'SampleApplication module is not defined' and 'sampleapplication' is name of my application.

但我无法运行npm install,它返回消息'SampleApplication module is not defined','sampleapplication'是我的应用程序的名称。

1 个解决方案

#1


0  

Given the error you posted, and the limited information available, I assume you're experiencing capitalization sensitivity from whatever OS your deployment server is on. Windows, Linux, OSX all handle capitalization in file paths differently.

鉴于您发布的错误以及可用的有限信息,我假设您从部署服务器所使用的操作系统中获得了大写敏感性。 Windows,Linux,OSX都以不同方式处理文件路径中的大写。

Thus, if you develop on OSX which does not care about capitalization and deploy to a windows server which treats file paths as is you can run into issues with required file paths in your program if you are not careful.

因此,如果您在不关心大小写的OSX上开发并部署到处理文件路径的Windows服务器,那么如果您不小心,可能会遇到程序中所需文件路径的问题。

#1


0  

Given the error you posted, and the limited information available, I assume you're experiencing capitalization sensitivity from whatever OS your deployment server is on. Windows, Linux, OSX all handle capitalization in file paths differently.

鉴于您发布的错误以及可用的有限信息,我假设您从部署服务器所使用的操作系统中获得了大写敏感性。 Windows,Linux,OSX都以不同方式处理文件路径中的大写。

Thus, if you develop on OSX which does not care about capitalization and deploy to a windows server which treats file paths as is you can run into issues with required file paths in your program if you are not careful.

因此,如果您在不关心大小写的OSX上开发并部署到处理文件路径的Windows服务器,那么如果您不小心,可能会遇到程序中所需文件路径的问题。