Open NickSch1 opened 4 years ago
@NickSch1 try to update CLI to the latest version (6.4.1
) - it works as expected on my side.
found 8 moderate severity vulnerabilities in 9434 scanned packages
run `npm audit fix` to fix 3 of them.
5 vulnerabilities require manual review. See the full report for details.
I still have the problem for every version from 6.3.0 and upwards. Including 6.4.1.
The problem also happens when I'm using the following package.json containing just the cli:
{
"name": "test-package",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"nativescript": "6.4.1"
},
"author": "",
"license": "ISC"
}
As noted earlier when I use 6.2.1 npm audit works without any problems.
I also tried version 6.5.0 and the problem still persists.
I also tried installing with npm install --cache /tmp/empty-cache
to make sure there werent any corrupted files in my npm cache.
@NickIliev Could you provide your NPM & Node versions? Just to make sure it isn't an issue with the versions of Node I tried it with.
D:\test\nativescript-foo-no-demo>npm --version
6.11.3
D:\test\nativescript-foo-no-demo>node --version
v10.15.0
Thanks for the quick response! Sadly I still get the same issue with these versions.
I have the same problem My ver is 6.14.4
This problem still persists:
$ nativescript --version
7.0.10
$ node --version
v14.14.0
$ npm --version
6.14.8
The cause seems to be having npm dependencies not specified by version, but via Git URL: See https://github.com/NativeScript/nativescript-cli/blob/master/package.json
"dependencies": {
...
"zipstream": "https://github.com/Icenium/node-zipstream/tarball/master"
}
I'm seeing this same issue, but in my case I have some packages installed from local tarball files like so:
"dependencies": {
...
"my-package": "file:pkgs/my-package-1.2.3.tgz"
...
}
npm audit
fails with these in place, but succeeds when I remove them.
With npm version 6.14.12, I am experiencing the same with local tarball files.
Environment Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug Npm returns the following error when running npm audit on the cloned repo or any other project that has the nativescript cli 6.3.0+ in dependencies/devDependencies:
Full log:
To Reproduce Add
"nativescript": "6.3.0"
to any project, runnpm install
with a clean node_modules folder & runnpm audit
. Or clone this repo and checkout to any version that is 6.3.0 or higher, runnpm install
and then runnpm audit
. On version 6.2.1 everything seems to be working.Expected behavior Be able to see a normal
npm audit
output.