Discord.js Error: Cannot find module './token.json' - discord

I'm getting this error: Error: Cannot find module './token.json' even though I have installed token

One single ./ means you go out of the File
../ mean you go out of the Folder
./.. means you go out of Parent Folder and so on. You could have maybe showed us your File Tree. This would have been made a lot easier for me.

Related

ERROR in EPERM: operation not permitted, open

I have a react application that starts up fine and has been running for some time now however now when I go to make any edits I am met with the following error....
ERROR in EPERM: operation not permitted, open 'C:\Users\Administrator\Desktop\ApplicantApp\FrontEnd\build\node_modules.cache.eslintcache'
Any ideas how to fix?
My exact error was
"ERROR in [eslint] EPERM: operation not permitted, open
'Y:\Caido\Dev\CaidoWebFramework\caido_nodejs\node_modules.cache.eslintcache'"
and I solved it like this: In Windows, I right clicked for folder properties on the folder Y:\Caido\Dev\CaidoWebFramework\caido_nodejs\node_modules.cache and unchecked ReadOnly and Hidden.
But I don't really understand what heappened because:
if I reopen the folder properties again the ReadOnly and Hidden boxes are not changed even if I just saved the same dialog with both checkboxes unchecked.
the message is about a file that can't be opened and I don't know why these atributtes would affect the behaviour.
Still I'm sure that after I uncheckd these checkboxes for the first time the problem dissapeared.
ERROR in [eslint] EPERM: operation not permitted, open 'D:\CODING\web dev\projects 2.0\portfolio 2.0\frontend_react\node_modules.cache.eslintcache'
For this just go into the path and delete the .eslintcache file, npm will create
a new file without any problem.
this problem is created because of running build commands over and over again and when you try to push git commands and all atleast in my case
but after doing all this it is solved so enjoy ....
Seems like you don't have the permission to edit within the folder. You need to give yourself the permission to edit C:\Users\Administrator\Desktop\ApplicantApp\FrontEnd. Depending on which Operating System you are using, allowing edit permission might vary. For Mac OS, you need to check the permission of each folder of the whole path 'C:\Users\Administrator\Desktop\ApplicantApp\FrontEnd\build\node_modules.cache.eslintcache'.
Then, you can remove node_modules folder, and then build it again with npm install (or yarn/Gulp depends on which package manager you are using to build).
I'm not sure if it will fix you problem, but no problem in trying :) Best of luck.

How I fix ns3's " Program "/waf" not found in PATH" error that it appears within eclipse?

I use ns3.30 and I configured it to build and run within Eclipse. However, I continuously get this error
"Error: Program "/waf" not found in PATH
PATH=[/bin:/home/flower/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/snap/bin]"
despite that everything working fine. Does that mean that am I may face a problem with my ns3 project later?, or, can I safely discard that error?
The path /waf refers to waf in the root directory. The problem is that you don't have a waf in the root directory. Change the path to ./waf to refer to waf the current working directory.
If you don't fix this, then any script you write will first have to be manually compiled by running ./waf from the terminal.

Vendor Directory on Google App Engine go111 runtime causes error?

I'm trying to get a little setup going and I'm encountering a strange issue. Code here: https://github.com/SantoDE/appenginedemo
I can deploy that, as long as I dont have my dependencies vendored locally. Once I let dep populate the vendor directory, I have a strange issue:
copied /Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator/go/jsoniter.go to /var/folders/q3/x4rq343n57x5v8pccndssw3r0000gn/T/tmp8Crxax/tmpPZJdtd/vendor/github.com/json-iterator/go/jsoniter.go
2018/11/07 09:51:09 Staging second-gen Standard app: unable to copy root directory to /app: unable to copy dir "/Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor" to "vendor": unable to copy dir "/Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com" to "vendor/github.com": unable to copy dir "/Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator" to "vendor/github.com/json-iterator": unable to copy dir "/Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator/go" to "vendor/github.com/json-iterator/go": unable to copy dir "/Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator/go/skip_tests" to "vendor/github.com/json-iterator/go/skip_tests": unable to copy dir "/Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator/go/skip_tests/array" to "vendor/github.com/json-iterator/go/skip_tests/array": unable to stat /Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator/go/skip_tests/array/skip_test.go: stat /Users/manuelzapf/go/src/github.com/SantoDE/appenginedemo/vendor/github.com/json-iterator/go/skip_tests/array/skip_test.go: no such file or directory
What am I doing wrong?
Are you using dep? If so, have you tried deleting the /vendor folder and Gopkg.lock file and re-running dep ensure?
I was able to figure out on my own. The issue was not with GAE, but instead with dep. Somehow, dep managed to lock in a very old version of that dependency with a symlink beeing in place which of course couldnt be resolved locally. Editing Gopck.toml and point it to a proper revision solved that issue.
Sorry for thinking its a google issue. I dont know to close that question :)

Bitbake: "Nothing PROVIDES" error

I'm new to Yocto and Bitbake. I'm running my yocto machine through a qemu emulator on Ubuntu and attempting to use the meta-selftest layer to get a sense of how to install new layers. I have downloaded the meta-selftest files into the directory where the rest of the meta- directories are, and added the path to the meta-selftest directory to the bblayers.conf file. Running bitbake-layers show-layers command gives the output
layer path priority
==========================================================================
meta /home/[my name]/Documents/poky/meta 5
meta-poky /home/[my name]/Documents/poky/meta-poky 5
meta-yocto-bsp /home/[my name]/Documents/poky/meta-yocto-bsp 5
meta-selftest /home/[my name]/Documents/poky/meta-selftest 5
however, when I try to run bitbake meta-selftest I get the error:
Loading cache: 100%
Loaded 1294 entries from dependency cache.
ERROR: Nothing PROVIDES 'meta-selftest'
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
What does this error mean? I checked meta-selftest's dependencies, and it doesn't have any, so I get the sense this error isn't saying there is a dependency issue, but I can't find any clear documentation on what this error is telling me. I get the vague sense it means that bitbake can't find meta-selftest, but show-layers contradicts that by listing it with the correct path.
Any help would be deeply appreciated.
-Patches
You don't bitbake a layer, you bitbake a recipe from that layer.
Try a bitbake test-empty-image for example. That is an image recipe provided by that layer.
Explore the meta-selftest directory and look for .bb files, the recipes. Those can be build using bitbake.
I recommend having a look at the quick start guide: http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html
You don't need bitbake the layers name.
Please check in meta-selftest dir and try to find the *.bb file (it's recipes). And try again with " bitbake recipes_name.bb "

GoogleAppEngine error directory not found

Ive been working on get a proxy working for when im school, to access sites that i use alot for work but my school dont like.. This is the error it comes up with when i try to upload the files to googles app engine..
C:\Program Files (x86)\Google\google_appengine>"C:\Python27\python.exe" appcfg.p
y update C:\Users\alastair\Desktop\School Files\Proxy Files\mirrorrr-master\mirrorrr-master
09:44 PM Host: appengine.google.com
Usage: appcfg.py [options] update | [file, ...]
appcfg.py: error: Directory does not contain an School.yaml configuration file
So im very confused on why it is asking for a "School.yaml" But i made one anyway, And even though its been made, it still displays this error, So if anyone can help, Please!
Your full project path contains two space characters and needs to be quoted, also, a trailing slash might be required i.e.:
C:\Python27\python.exe appcfg.py update "C:\Users\alastair\Desktop\School Files\Proxy Files\mirrorrr-master\mirrorrr-master\" assuming that's where you have your app.yaml file.
In your case it's thinking you are pointing to "C:\Users\alastair\Desktop\School" file which does not exist and thus showing the error.

Resources