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

Offline install: ENOTCACHED, Could not load "node-windows", Could not find "pm2.exe". #62

Open
vm6ej04 opened this issue Apr 12, 2022 · 1 comment

Comments

@vm6ej04
Copy link

vm6ej04 commented Apr 12, 2022

keep having issue installing offline.

1.request to https://registry......@jessety eslint-config failed cache mode is 'only-if-cached' but no cached response is available
2. Cloud not load "node-windows"
3.the console keep saying attempt to locate pm2.exe service, and it always failed after 10 attempts.
pm2 version 5.1.2
npm version 8.1.2
node version 16.13.1

have tried method in this post coreybutler/node-windows#57
npm link node-windows seems to be doing something, however since there's not external internet connectivity, it froze at a progress bar kind of message. saying
[ ] - idealTree:pm2-installer-main: sill idealTree buildDeps

Any help? I think it's because node-windows not working os it cannot create windows service?

@aungthihaaung
Copy link

aungthihaaung commented Apr 27, 2022

This works for me,

  1. "npm install" in the online server
  2. Copy @jessety/eslint-config folder from the node_modules folder.
  3. In the offline server, run "npm root -g" to see the global npm root node_modules path. Mine is at C:\ProgramData\npm\npm\node_modules.
  4. Paste @jessety/eslint-config folder from step 2 into, C:\ProgramData\npm\npm\node_modules.
  5. Run "npm run setup".

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

2 participants