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
Error: Cannot find module 'immutable' on existing project deploying on server #2588
Comments
In your generated app you can run: npm i it install all node modules in your project, admin and plugins |
Thanks Man @ntloi95 Yes, i went to do it again. ` root@ed-api-v1:~/projectname/ed-api# npm i npm ERR! path /root/projectname/ed-api/node_modules/strapi npm ERR! A complete log of this run can be found in: `root@ed-api-v1:~/projectname/ed-api# npm run setup --plugins
🕓 The setup process can take few minutes. 🔸 Administration Panel Packaged installed successfully
🏗 Building the admin... |
@jkbaseer did you install the strapi package globally? If no, you can't use the strapi command (as your system isn't aware of the location) There are two places the
The reason for the split is, it is possible you may not need the global CLI based tool while running in production if you are using Please run |
I'm marking this issue as closed for now, please update if this didn't fix the issue and we can re-open it. |
Hey Guys, I would request to open up this issue because i tried running commands like
Error: Cannot find module 'immutable' it doesn't seem to help. |
@Aurelsicoko @lauriejim maybe you can assist here. I think he is using Node Version Manager (NVM) which I believe is causing the issue. |
Did you try to delete the package-lock.json file? |
I have solved the problem, you can fixed it in 2 ways:
Check this related issue: npm WARN cannot run in wd node-gyp Which causing the problem is the node_modules in plugins are not installed.
So you have to execute it manually or using |
Informations
What is the current behavior?
`root@ed-api-v1:~/ed-api# strapi start
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'strapi-generate'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/root/ed-api/plugins/content-type-builder/services/ContentTypeBuilder.js:6:19)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
^C
`
Steps to reproduce the problem
If you have hosted this on ubuntu 16.04 with a code that is pulled from your bitbucket (A) , it may not work. but it works when we create a new project.
What is the expected behavior?
The app should strart running in the localserver:1337 as everytime it does.
Suggested solutions
While researching, people are suggesting this is due to the new node version node-inspector/node-inspector#1044
Few people ask to delete node_modules directory and package.json. it doesn't work
And i got this npm audit as well, in case it helps
The text was updated successfully, but these errors were encountered: