when i run the command npx create-strapi-app#latest my-project i find this error Cannot find module 'fs-extra' what should i do?
I installed the fs-extra module but it does not work, then I typed these two commands npm install -g npm-reinstall, npm install -g npm#latest it still does not work, if you can offer me a solution
Related
i am trying to install supertest but in the terminal i get error, when i run supertest -v says command not found. after installing i get below error. any suggestion would be highly appreciated
i tried to install the dependency with using below methods
npm i/install supertest
2, npm i/install --save-dev spuertest
3, npm i/install --save supertest
#MacBook-Pro Node_Cat_Supertest % npm install --save supertest
npm WARN cat_supertest#1.0.0 No description
npm WARN cat_supertest#1.0.0 No repository field.
supertest#6.0.1
updated 1 package and audited 137 packages in 1.355s
37 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
ahmadimranpopal#MacBook-Pro Node_Cat_Supertest %
Regards
IP
have you ever tried it as a root privileges? and got same results? sudo -i
have you ever tried installing as a global package? npm install <module-name> -g
have you ever tried to installing specific version of the package? npm install <module-name>#<version-name>
I install AngularJs using the command npm install -g angular-cli and afterwards, when I was trying to create new project, I get the following error,
Cannot find module 'reflect-metadata'
What should I for resolve the error ?
I had to reintall nodeJS from their website and install reflect-metadata and portfinder using the following commands while being as superuser,
sudo npm install -g reflect-metadata
sudo npm install -g portfinder
Afterwards, I can create new project using the command,
ng new myProject
Upgrade npm by npm install -g npm.
If problem still exists try:
npm i -g reflect-metadata
Re-installing node.js worked for me.
I did $ npm install gulp -g and I am getting this error
-bash: /usr/local/bin/gulp: No such file or directory
node version:
v5.0.0
I am using OSX.
what could be happening?
as said in the gulp guide you have to install cli and than you need to have gulp in your project dependencies in order to run.
So first:
npm install --global gulp-cli
And than inside your project
npm install --save-dev gulp
I replied to a similar question here
hope this helps
I have installed mean.io and ran sudo npm install. Actually following commands in sequence
sudo npm install -g meanio
mean init yourNewApp
cd yourNewApp
sudo npm install -g bower
sudo npm install
It is supposed to download and install angularjs libraries into public/system/lib. After doing the above steps public /system/lib is not created due to which when I start the application I get the error
events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open '/home/santhosh/dev/scaleqa/mean_tut/old mean/temp/myapp/public/system/lib/bootstrap/dist/css/bootstrap.css'
[nodemon] app crashed - waiting for file changes before starting...
Is it something to do with certain npm/angularjs server being down. I have faced this problem earlier also but got fixed on 2nd try and I didn't bother to do more research. This became a big issue when I try to pull my repo into cloud and start the application. public/system/lib is added in .gitignore by default and is expected to be created during npm install.
I get following warnings with sudo npm install
npm WARN package.json mean-connect-mongo#0.4.3 No repository field.
npm WARN cannot run in wd mean#0.3.3 node node_modules/bower/bin/bower install (wd=/home/santhosh/dev/scaleqa/mean_tut/old mean/temp/myapp)
this is link to package.json
The problem maybe related to running npm install as sudo, which can cause problems. As mentioned in another stack overflow question, this can be worked around in a couple ways. But because it looks like this is being run from your home directory, you really shouldn't need to run npm install as root.
Try to issue the same commands, but the last without sudo:
sudo npm install -g meanio
mean init yourNewApp
cd yourNewApp
sudo npm install -g bower
npm install
Note that the reason you may need to run npm install -g <package> using sudo is because by default npm uses /usr/local for global installs, which can be a restricted directory. However, when you install a package locally (without the -g flag) you should not need to run as root.
I used Homebrew to install Node.js, then used npm install to install Grunt and its dependencies, but after the installation completed, I was not able to run Grunt:
zsh: correct 'grunt' to 'grn' ÆnyaeÅ? n
zsh: command not found: grunt
What is the proper method of installing Grunt so I do not get this error?
To use Grunt on the command line, you have to install the command-line interface:
npm install -g grunt-cli
The -g flag is for installing the module globally, which will also create a PATH variable for Grunt.
npm install -g grunt-cli => This will put the grunt command in your system path