SASS installation with Grunt - sass

I ran
npm install --save-dev to install dev dependencies, which finished successfully but why there is no entry shown in package.json related to this command.

I just checked that if I removed "-g" option from the command
npm install -g grunt --save-dev it works properly -
so basically removing the global option from the command it is updating the package.json correctly.

Related

What is the solution for Error: Cannot find module 'yargs'

Did the ff commands but still getting the error
run this command from powershell with admin previlages:
npm install --global --production windows-build-tools
cmd:
npm i yargs --save
yarn add yargs
npm install --save #types/yargs
This worked for me.

how can I run "npm install && npm run dev on laravel 7?

i got this error when run command "npm install && npm run dev" on my project.
I have tried to run the command "npm install" and i get the other error.
enter image description here
You have to run:
npm install; npm run dev
The && operation in CLI only works in CMD on Windows. In Powershell you have to use a semicolon instead.
First try to update your nodejs version
npm install -g node
And then install cross-env globally
npm install --global cross-env
Finally install latest autoprefixer or 9.8.0 and run dev
npm install autoprefixer#9.8.0
npm install && run dev
The error you are getting is due to && operation in CLI, first of all, you have to install all dependencies using npm install and then you are allowed to run dev mode.
For real-time compiling you can use npm run watch instead of npm run dev.
Make sure you have installed node.js within your pc.

How solve missing package.json

Hello my problem is when I try to remove any npm package o install my terminal show this warning
npm WARN saveError ENOENT: no such file or directory, open '/Users/liantonypozo/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/liantonypozo/package.json'
some way to fix that without affecting the packages I have installed ?
capture
How are you uninstalling? Do it via npm uninstall packageName. When you have problems, also try deleting node_modules and package-lock.json then doing npm install.
From your screenshot, your list of packages are the global packages, because you ran npm list with the -g flag. You need to do the same with the uninstall command - npm uninstall -g bower - if you want to delete one of those globally installed packages.

getting error while install any npm module

I getting this error while install any module from npm and also not work with yarn.
I don't know where is the problem!
Update NPM like :
npm update
Also i suggest you do with -g
"npm update -g" it will update globally installed packages.

Updating npm on windows

I am currently on npm version 1.2.32. When I run the following:
npm update npm -g
I get the following output:
npm WARN package.json cheerio-select#0.0.3 No repository field.
npm WARN package.json cli-table#0.2.0 No repository field.
npm WARN package.json assert-plus#0.1.2 No repository field.
npm WARN package.json ctype#0.5.2 No repository field.
Then when I check version afterwards using npm -v, it hasn't updated. Is there something else I need to do?
Found the Fancy Windows Install in the docs:
Download zip from http://nodejs.org/dist/npm/
Unpack in the same folder where node.exe lives

Resources