-
Notifications
You must be signed in to change notification settings - Fork 862
Missing modules when running npm run build or npm install #780
Comments
Do you get errors when you run |
@colin-marshall |
The error in the original post is from running Please do the following: Thanks. |
@tylerfoulkes did you figure it out? |
Yes that worked perfect, thank you! Sorry I didn't respond earlier. |
No worries! Just making sure you got it sorted out. Feel free to close the issue if it's resolved. Thanks! |
@colin-marshall , I am having the same error, I am using a windows 8 system, but it is as if the command rm -rf node_modules is not recorgnized on windows. |
@clementcrownrise , rm -rf is linux command to remove the directory i.e., node_modules in this case. You can try deleting node_modules and do "npm install" again. Hope it works! |
if it doesn't work it could be a linking problem like I had. Try to uninstall npm and install it again, it should fix the problem. |
In windows you could probably use rmdir /s node_modules instead of rm -rf node_modules. |
i am facing same problem . i also uninstall and then install it ,but it is not working module.js:428 |
Hi, I'm getting the same error on WINDOWS 10, C:>node C:\Users\chegi\Documents\00 Soft Project\Test1.js and I got: C:>npm install npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\node_modules' npm ERR! Error: EPERM: operation not permitted, open 'C:\npm-debug.log.3072103967' npm ERR! Please include the following file with any support request: C:> Any suggestion how to fix this one, or If removing the modules may help, Thanks!!! |
I am also getting same error! |
Firstly, npm on windows is just horrible. I know your pain. |
having the same problem here. |
at npm install i did not get any error but after running on command promt i am geeting an error. C:\Users\Lenovo\Desktop\sample website with node.js>node pcnmserver.js |
Same error after a completely fresh install of node, npm and node-sass on Win 10: Edit: I solved it by updating to NPM 5.3.0. Seems to have been an npm problem.
|
@colin-marshall thx |
@artigarg did you troubleshoot this issue I get a similar problem... Microsoft Windows [Version 10.0.14393] C:\WINDOWS\system32>node app.js Error: Cannot find module 'C:\WINDOWS\system32\app.js' C:\WINDOWS\system32>rimraf node_modules C:\WINDOWS\system32>npm install up to date in 0.284s C:\WINDOWS\system32>node app.js Error: Cannot find module 'C:\WINDOWS\system32\app.js' C:\WINDOWS\system32> |
@dnorton94 are you even using FoundationPress? You don't build FoundationPress with Regardless, I think you are probably in the wrong directory if you are trying to run a Node app from the |
@clementcrownrise Directly open the installed folder (node_modules). Right-click to remove it |
BTW, chaps, for those of you who don't use Linux/Mac, just so you know - Windows has a huge problem with the deep file system created in node_modules & will very often refuse to remove the entire directory, even from PowerShell using Administrative privileges. One solution is "Unlocker", but then people who aren't paying attention install other unnecessary applications on their PC, and the other irritation is that it often requires a system reboot to perform the operation. In Windows 10, fortunately, we can install 'Windows Subsystem for Linux' via 'Control Panel >> Programs & Features >> Turn Windows Features On or Off'. There is a tutorial on installation here: https://msdn.microsoft.com/en-us/commandline/wsl/install-win10, and afterwards users can then perform native Linux commands on their Windows folders using Bash from the Command Prompt, eliminating the need for pesky workarounds to delete files Windows battles with. |
Hey guys, I'm on mac OS High Seirra and I'm trying to install solidity but i'm getting the below response. I tried runnig the command as sudo - same response. Here is the response I have been getting:
Any help to any solutions to this problem?? |
@Jay991 are you using FoundationPress? |
I just moved to a new environment all worked fine - Thanks ! :)
…--
Jihad Rizk
On December 6, 2017 at 8:53:32 PM, Colin Marshall (notifications@github.com) wrote:
@Jay991 <https://github.com/jay991> are you using FoundationPress?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#780 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYu4n3QEaj_FaVJaJXu0Sp_qGhJB4W2yks5s9uKrgaJpZM4H5SqI>
.
|
i just run this code |
module.js:538 Error: Cannot find module 'bcrypt' plz give the solution for this ... I reinstall all npm package still this problem happens |
@imsagarj and everybody else that replies to this issue from here forward. Please state the following:
If you are not using FoundationPress, please do not look for help in this thread. https://github.com/npm/npm is a better place to get help on this issue. Thanks! |
I getting this error, I didn't know how to figure it out Error: Cannot find module '/Users/udaysaikumar/connection' |
i run build kibana |
@khelmrab @udaysaikumar1919 please see: |
I think should install only LTS version of node |
This issue keeps getting responses from people that aren't using FoundationPress, so I'm going to lock conversation since we can't help you with issues that aren't related FoundationPress. There is one solution in this thread that seems to have helped a lot of people (delete
If you are using FoundationPress and still have this issue, feel free to open a new one. For the rest of you, https://github.com/npm/npm is a better place to get help on the issue if the above solution does not work. |
Hi,
I am working on a foundation press project and I am trying to get it all setup and working. I have cloned the preexisting repository howoever every time I run pretty much any npm command I get the following output:
module.js:327
throw err;
^
Error: Cannot find module 'glob'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/path/to/foundation/project/node_modules/gulp-load-plugins/node_modules/findup-sync/lib/findup-sync.js:15:12)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! code ELIFECYCLE
npm ERR! foundationpress@2.3.0 build:
gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the foundationpress@2.3.0 build script 'gulp build'.
npm ERR! This is most likely a problem with the foundationpress package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs foundationpress
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls foundationpress
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /path/to/foundation/project/npm-debug.log
I have uninstalled nodeJS completely and reinstalled it again. It seems that I must have large dependency missing because every time I try to install the module that it says its missing it just complains about another module missing. Im a bit new to these package managers but aren't supposed to take care of all the dependencies?
The text was updated successfully, but these errors were encountered: