Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm bundle is not working on Windows Server 2012 R2 #50

Open
xinthose opened this issue Jan 25, 2022 · 0 comments
Open

npm bundle is not working on Windows Server 2012 R2 #50

xinthose opened this issue Jan 25, 2022 · 0 comments

Comments

@xinthose
Copy link

xinthose commented Jan 25, 2022

Description
Cannot install pm2-installer offline on a computer

Steps to Reproduce

  1. npm run bundle // computer with internet
  2. move folder to server without internet
  3. Open Node.js command prompt as administrator on server, cd to folder
  4. npm configure, npm configure-policy, npm run setup --> last command gives this error:
Folder\pm2-installer-3.3.1\src\windows\setup-packages.ps1 : Could not extract
offline bundle. Expand .\bundle.tar.gz or .\bundle.zip manually and run this
script again.
At C:\Users\septagehelp\Downloads\6.2.0.4\Copy Files to EleMech
Folder\pm2-installer-3.3.1\src\windows\setup.ps1:25 char:1
+ & .\src\windows\setup-packages.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
   tion
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
   n,setup-packages.ps1
  1. I manually unzip bundle.zip and run npm run setup, I get the same error as above, so I delete bundle.zip and leave the folder, then I get the message:
Cannot connect to the npm registry, and no offline bundle was found. Attempting
install anyway..
  1. the installation fails, there is no internet on this computer

Environment

> [email protected] info
> node ./src/bundle-info/current.js

Running on: 1/25/2022, pm2-installer 3.3.1 with node v16.13.2 and npm 8.1.2 on w
in32-6.3.9600.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant