npm get WARN during install Sass - node.js

after i use npm install sass in cmd
then cmd show these errors
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\me\package.json'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.3.1 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\me\package.json'
npm WARN me No description
npm WARN me No repository field.
npm WARN me No README data
npm WARN me No license field.
+ sass#1.32.8
added 15 packages from 18 contributors and audited 16 packages in 3.402s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
i dont know how to solve these errors

Those are just npm warnings about the package you are installing, in your case you don't have to worry about them unless something is not working. You can ignore them if you like by running:
npm install sass --silent
npm docs

Related

What do these npm warnings mean when installing Jest in Linux?

While installing Jest with npm I received the following warnings. I would like to know in general what they mean:
npm install --save-dev jest
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request-promise-native#1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN saveError ENOENT: no such file or directory, open '/home/burtrandpaulie/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^2.1.2 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/burtrandpaulie/package.json'
npm WARN burtrandpaulie No description
npm WARN burtrandpaulie No repository field.
npm WARN burtrandpaulie No README data
npm WARN burtrandpaulie No license field.
+ jest#26.6.3
added 520 packages from 355 contributors and audited 521 packages in 61.729s
24 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
All the ones prior to the last 4 are related to dependencies of jest. There are some packages jest uses that have announced they are deprecating, but at this point they are still in wide use (e.g. request) so you can inquire with the jest project what their plan is, but while deprecated the request module will likely be around a while.
The last 4 lines are about your own package.json:
npm WARN burtrandpaulie No description
npm WARN burtrandpaulie No repository field.
npm WARN burtrandpaulie No README data
npm WARN burtrandpaulie No license field.
which just says your package.json doesn't have that info. Nothing crazy or required esp. if you're just starting a project.

npm install angular-cli not working

I have installed Latest nodeJS(v.8.9.1) and npm(6.1.0), though im getting below problem
npm WARN saveError ENOENT: no such file or directory, open
'F:\AngularProject\Node\package.json'
npm notice created a lockfile as package-lock.json. You should commit this
file.
npm WARN enoent ENOENT: no such file or directory, open
'F:\AngularProject\Node\package.json'
npm WARN #angular/core#2.4.10 requires a peer of rxjs#^5.0.1 but none is
installed. You must install peer
dependencies yourself.
npm WARN Node No description
npm WARN Node No repository field.
npm WARN Node No README data
npm WARN Node No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4
(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents#1.2.4: wanted {"os":"darw
in","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ angular-cli#1.0.0-beta.28.3
added 922 packages from 761 contributors and audited 5006 packages in
280.149s
found 14 vulnerabilities (1 low, 9 moderate, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
I have searched in net,but couldn't sort out.I tried the some possible ways like clear npm cache,installed latest npm,Tried in administrator console. But still unable to find out.

Installed npm but command not found

I'm installing the following package on Linux Mint
https://github.com/frida/frida-compile
I try to install it by
~ $ sudo npm install frida-compile
npm WARN saveError ENOENT: no such file or directory, open '/home/david/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/david/package.json'
npm WARN david No description
npm WARN david No repository field.
npm WARN david No README data
npm WARN david No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ frida-compile#5.3.7
updated 1 package in 2.883s
[!] 2 vulnerabilities found [21344 packages audited]
Severity: 2 Low
Run `npm audit` for more detail
And when I run frida-compile on the command line, I get
frida-compile: command not found
Any idea what the issue is here?
I am running Node 8.11.1

npm install -g #angular/cli command does not install angular cli

I am creating a sample angular2 web app. For that i have installed node.js (v 7.1.0)and NPM (v 3.10.9).
and now after opening system command prompt when I execute the command :
NPM install -g #angular/cli
to install angular cli I am getting the following shown results.
After doing ng -v to check the version of cli installed I am not getting the version number.
Is the cli not installed correctly?
or do I need to set any path variable in environment var?
What has to be done here? Please advise.
C:\Users\27727>d:
D:\>cd learn-angular
D:\learn-angular>npm i -g #angular/cli
npm WARN gentlyRm not removing C:\Users\27727\AppData\Roaming\npm\ng.cmd as it w
asn't installed by C:\Users\27727\AppData\Roaming\npm\node_modules\#angular\cli
npm WARN gentlyRm not removing C:\Users\27727\AppData\Roaming\npm\ng as it wasn'
t installed by C:\Users\27727\AppData\Roaming\npm\node_modules\#angular\cli
C:\Users\27727\AppData\Roaming\npm\ng -> C:\Users\27727\AppData\Roaming\npm\node
_modules\#angular\cli\bin\ng
C:\Users\27727\AppData\Roaming\npm
`-- #angular/cli#1.7.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\#a
ngular\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#
1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\#a
ngular\cli\node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fs
events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#
1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN ajv-keywords#3.1.0 requires a peer of ajv#^6.0.0 but none was installed
.
D:\learn-angular>ng -v
'ng' is not recognized as an internal or external command,
operable program or batch file.
D:\learn-angular>
In your system please check this path ( C:\Program Files\nodejs ) is there in environment variables.

how do I install npm packages in linux machine

I've installed nodejs v7.5.0 and npm v4.1.2 in my 32 bit linux mint machine. while I'm typin' npm install into terminal, it gives me these informations instead of being installed npm packages are:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm WARN #angular/core#2.4.7 requires a peer of rxjs#^5.0.1 but none was installed.
npm WARN shwokat#1.0.0 No description
npm WARN shwokat#1.0.0 No repository field
Now where's my wrong? how to solve it and install npm packages correctly, please let me know?
Try sudo npm install npm -g
Go through the official guide.

Resources