Hi I'm trying to go through the AngularJS original tutorial and in step 2 where I'm supposed to run ./scripts/test.sh, I get an error saying
[ERROR] config - Config file does not exist!
I've checked /config/karma.conf.js and the file indeed does exist.
I'm running the latest version of node, npm, and karma.
I thought re-installing them would fix the issue (as mentioned by a member of the AngularJS team on a Google forum post I found).
I still get the error however. Anyone have any suggestions?
Edit: I tried running /config/karma.conf.js and it gave an error saying "JASMINE is undefined," even though Jasmine is installed. Do I have to set a path or something? I have jasmine installed globally.
You might need to install Karma
steps:
npm install generator-karma
yo karma
If you are on windows try to run ./scripts/test.bat.
On Mac OS Mavericks.
1 - Install Karma
npm install -g generator-karma
2 - run yo karma
yo karma
If node.js and yo is working this will be enough.
Related
I'm trying to run the new Strapi version 4 application. But it returns this error.
Is there any bug in new strapi v4? or I'm doing wrong anything?
I'm using strapi official guide to start a new project
installation command npx create-strapi-app#latest molla-admin.
NodeJS v16
Windows 11
Error
ModuleNotFoundError: Module not found: Error: Can't resolve '#strapi/design-system/themes' in 'C:\Users\Admin\Desktop\molla-admin\.cache\admin\src'
at C:\Users\Admin\Desktop\molla-<anonymous>:10:1)
You might be thinking #strapi/design-system package is missing right? After that, I also tried to install both #strapi/design-system and #strapi/design-system/themes npm package
Still, it doesn't work. It returns a new error
ModuleNotFoundError: Module not found: Error: Can't resolve '#strapi/icons/CarretDown' in 'C:\Users\Admin\Documents\testing\strapi-v4-app\node_modules\#strapi\helper-plugin\build'
Should I go on for the next missing Module?
For me the issue was solved by installing #strapi/design-system (Node: v14.15.5, npm: 8.1.3)
npm install #strapi/design-system
Node version : 14.18.1
Npm version : 6.14.15
OS : Ubuntu 20.04.3 LTS
Steps I followed:
(I read somewhere that the latest version of node isnt working and
someone mentioned using the 14.18.1 version)
Downgraded NPM to use the 14.18.1 version and not the latest.
npm run build on the strapi project. This gave an error that its
missing #strapi/design-system.
npm install #strapi/design-system, you get another error that its missing #strapi/icons
npm install #strapi/icons . After this step there was an error relating to JSX scritps something to do with reactjs. So, in the next step , I updated Reactjs
npm install --save react#latest
npm run build again and this time SUCCESS!!
The strapi team should mention the issues on their homepage rather that making new users go through hoops to get it working. They need to make it clear that you can run into issues when using certain version of Node etc. As someone mentioned that they are aware of the issue yet no information in the homepage where new users visit to try it out. It should've been placed as a BANNER at the top in BOLD TEXT.
It's a known bug and they are working on a fix.
You have to use yarn in the mean time.
I can confirm that this bug is related to using Node v16. To get around the bug, I first ran:
nvm use 14.18.1
Afterwards, running the following resulted in successful compilation:
npm run build -- --clean
No need to attempt installation of #strapi/design-system.
I got this error because I was using Node v16. There was a message somewhere in my troubleshooting that you have to use A Node version >=10.X.X.X and <=14.X.X.X
I used NVM(Node Version Manager) to switch to 14.17.6 and it works
following solution worked for me:
yarn add #strapi/design-system
yarn add #strapi/icons
work on windows and ubuntu
node v14.15.0
yarn 1.22.17
npm 6.14.8
npm install #strapi/design-system
solution worked for me.
node 16.13.1
npm 8.1.4
macOS 12.0.1 on M1Max
I am getting this error:
I am not able to install the angular cli using npm. I am getting the "cannot find module 'json-schema'" error. I tried reinstalling the node js and npm with the latest versions. But the error didn't resolve. Please help me with this.
This issue has a fix in the link below:
https://github.com/kriszyp/json-schema/issues/29
Good Luck
I uninstalled and installed node/npm/angular-cli many times. Finally did a "where ng" on my windows pc, and found the executable was under the %appdata%\npm directory. So after uninstalling node, deleting the %appdata%\npm directory, reinstalling node, and 'npm install -g angular-cli', the ng new and ng serve commands started working.
When I try to install Grommet in windows 7 using command prompt, it gives the errors as "Cannot find Module". I have been following this tutorial to set up the environment...http://www.grommet.io/docs/hpe/develop/get-started.....When I run gulp dev, it gives the error as "Cannot find Module"..I even tried npm uninstall and then npm install but it doesn't work either.
"node version":"4.4.0","npm version":"2.14.20".
Also, I am not behind a proxy.
It is a problem with the node js and npm version. Required version is mentioned in the docs. If even that doesn't work, try installing in a different folder, which worked in my case.
I'm working with nodejs (version v4.2.1)
I would like to work with gulp
I've installed gulp (3.9.0)
But when I try my default script with an empty function (script below) with the command
gulp
I get the error
Error: Cannot find module 'dateformat'
I've tried to install dateformat with
npm install -g dateformat
I can check that dateformat is installed with the command
dateformat --help
But the gulp script produce the same error
Error: Cannot find module 'dateformat'
I'm working with Windows 7
Any help?
==================== script
var gulp = require('gulp');
gulp.task('default', function() {
});
Had a similar issue and reinstalling gulp globally indeed fixed the issue, however, see my details regarding prior installations of node (since you mention it as well)
npm uninstall gulp -g
npm install gulp -g
The explanation is difficult to precisely offer, since I embarked on an entire troubleshooting effort, but if it is of any help - I suspect the issue is a result of installing node, but the installer is not overwriting prior versions of npm - somehow causing an internal issue somewhere. Troubleshooting flow:
uninstall node
delete the nodejs folder, located by default at ~\Program Files\ (orphaned node_modules with npm folder found here)
reinstall node
globally uninstall/reinstall gulp
Some more details on the issue can be found here: npm 3 broken when installed from official OS X Node.js installer #10434. While this is specific to OSX, I found the situation identical to myself on the Windows side.
I had the same problem. I resolved it by
Delete node_modules folder
npm install
I'm super new to all of these frameworks. I'm following tutorials that want me to use Karma for unit testing. According to NPMjs.org - karma The build is failing
Is this ENOENT error:
after running npm install -g karma
a result of this failing build? Or is it windows? Maybe a system enviroment variable error.
Are there prerequisite npm modules I must install before karma will properly install?
I'm uncertain on where to start debugging this problem.
Karma depends on ws: this is this package that npm can't build.
It builds fine on Mac Os but doesn't on Windows: there's an issue on karma's GitHub referring to ws' github issues (here, here and there). I'd suggest you to take a look a the possible solutions, but unfortunately it doesn't look like this is a resolved matter.