verdaccio publish new package - npm-publish

OS OpenSuse 15.2 I have trouble with publihing new packages to local npm proxy
Verdaccio version 5.1.0
I have installed verdaccio from npm
Added user verdaccio : id verdaccio uid=1001(verdaccio) gid=100(users) группы=100(users)
Added to config storage path params :
storage: /npm/storage
# path to a directory with plugins to include
plugins: /npm/plugins
Run it
warn --- config file - /home/verdaccio/.config/verdaccio/config.yaml
warn --- Plugin successfully loaded: verdaccio-htpasswd
warn --- Plugin successfully loaded: verdaccio-audit
warn --- http address - http://172.16.4.76:1234/ - verdaccio/5.1.0
Add npm user and set npm manager to register local proxy
Username: verdaccio
Password:
Email: (this IS public)
Logged in as verdaccio on http://172.16.4.76:1234/.
Then I cd to js module and do :
```# npm publish --registry http://172.16.4.76:1234/
Got an error :
(npm )
```npm notice
npm notice 📦 easyrabbit#1.0.0
npm notice === Tarball Contents ===
npm notice 418B package.json
npm notice 1B README.md
npm notice 1.5kB class.easyrabbit.mjs
npm notice === Tarball Details ===
npm notice name: easyrabbit
npm notice version: 1.0.0
npm notice package size: 938 B
npm notice unpacked size: 1.9 kB
npm notice shasum: 9f758fe3b7076efb131482242bccab92e6d12218
npm notice integrity: sha512-rFP+zMQlRFZhB[...]MQmtD0g1Y6u9Q==
npm notice total files: 3
npm notice
npm ERR! code E404
npm ERR! 404 Not Found - PUT http://172.16.4.76:1234/easyrabbit - no such package available
npm ERR! 404
npm ERR! 404 'easyrabbit#1.0.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-05T11_27_47_111Z-debug.log
On verdaccio side :
```
http --- 172.16.4.76 requested 'GET /npm'
(node:12088) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
info --- auth/allow_action: access granted to: undefined
info --- allowed access for npm
info --- making request: 'GET https://registry.npmjs.org/npm'
http --- 200, req: 'GET https://registry.npmjs.org/npm' (streaming)
http --- 200, req: 'GET https://registry.npmjs.org/npm', bytes: 0/15211570
http --- 200, user: verdaccio(172.16.4.76), req: 'GET /npm', bytes: 0/4171881
http --- 172.16.4.76 requested 'GET /npm'
info --- auth/allow_action: access granted to: undefined
info --- allowed access for npm
http --- 172.16.4.76 requested 'GET /-/whoami'
http --- 304, user: verdaccio(172.16.4.76), req: 'GET /-/whoami', bytes: 0/0
http --- 200, user: verdaccio(172.16.4.76), req: 'GET /npm', bytes: 0/4171881
http --- 172.16.4.76 requested 'POST /-/v1/login'
http --- 404, user: verdaccio(172.16.4.76), req: 'POST /-/v1/login', bytes: 18/150
http --- 172.16.4.76 requested 'PUT /-/user/org.couchdb.user:verdaccio'
http --- 201, user: verdaccio(172.16.4.76), req: 'PUT
/-/user/org.couchdb.user:verdaccio', bytes: 134/110
http --- 192.168.3.105 requested 'GET /'
http --- 304, user: null(192.168.3.105), req: 'GET /', bytes: 0/0
http --- 192.168.3.105 requested 'GET /-/verdaccio/packages'
http --- 304, user: null(192.168.3.105), req: 'GET /-/verdaccio/packages', bytes: 0/0
http --- 172.16.4.76 requested 'PUT /easyrabbit'
info --- auth/allow_action: access granted to: undefined
info --- verdaccio is allowed publish for easyrabbit
info --- auth/allow_action: access granted to: undefined
info --- verdaccio allowed unpublish for easyrabbit
http --- 404, user: verdaccio(172.16.4.76), req: 'PUT /easyrabbit', error: no such
package available
What do I wrong ?

I've had this error two days ago. I tried everything, even updated to verdaccio 5.1.
My solution: in my package.json, there was a field "deprecated" set to false. I don't know how this got there, but once I removed it, I could publish again. Check your package.json and remove some fields you do not need, maybe you'll get lucky. Verdaccio error messages on the server do not mention anything about a malformed package.json.

Related

caliper bind --caliper-bind-sut fabric:1.4.8 --caliper-bind-args=-g .when i write this command i got this error

2022.09.07-10:48:20.066 warn [caliper] [bind] Working directory not specified. Using "F:\hyperlf\transaction_data"
2022.09.07-10:48:20.069 info [caliper] [bind] User-provided arguments for npm: "-g"
2022.09.07-10:48:20.071 info [caliper] [bind] Binding for fabric#1.4.8. This might take some time...
2022.09.07-10:48:20.073 info [caliper] [bind] Using working directory: F:\hyperlf\transaction_data
2022.09.07-10:48:20.075 info [caliper] [bind] Calling npm with: install -g fabric-client#1.4.8 fabric-protos#2.0.0-snapshot.1 fabric-network#1.4.8
node:events:498
throw er; // Unhandled 'error' event
^
Error: spawn npm ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn npm',
path: 'npm',
spawnargs: [
'install',
'-g',
'fabric-client#1.4.8',
'fabric-protos#2.0.0-snapshot.1',
'fabric-network#1.4.8'
]

Error on sonarQube scan in jenkins on Windows machine

I am trying to run the soanrQube scan from my jenkins node, Sonar scanner version is SonarQube Scanner 3.1.0.1141 SonarQube server is SonarQube server 5.6.4. getting the following error, Can any one help me on this.
05:13:57.811 DEBUG: Execution execute
05:13:58.100 DEBUG: Publish global mode
05:13:58.193 INFO: Load global repositories
05:13:58.243 DEBUG: GET 401 http://XXXXXXXXXXXXX/batch/global | time=50ms
05:13:58.244 INFO: ------------------------------------------------------------------------
05:13:58.245 INFO: EXECUTION FAILURE
05:13:58.245 INFO: ------------------------------------------------------------------------
05:13:58.245 INFO: Total time: 1.179s
05:13:58.279 INFO: Final Memory: 9M/491M
05:13:58.279 INFO: ------------------------------------------------------------------------
05:13:58.279 ERROR: Error during SonarQube Scanner execution
05:13:58.280 ERROR: Unable to load component class org.sonar.batch.bootstrap.BatchPluginInstaller
05:13:58.280 ERROR: Caused by: Unable to load component class org.sonar.home.cache.FileCache
05:13:58.280 ERROR: Caused by: Unable to load component class org.sonar.batch.bootstrap.GlobalSettings
05:13:58.280 ERROR: Caused by: Unable to load component class org.sonar.scanner.protocol.input.GlobalRepositories
05:13:58.280 ERROR: Caused by: Not authorized. Please check the properties sonar.login and sonar.password.
05:13:58.280 ERROR:
05:13:58.280 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
Picked up _JAVA_OPTIONS: -Xmx8192m
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ahp#0.0.0 sonar: `sonar-scanner`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ahp#0.0.0 sonar script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\apps\node-v10.16.2-win-x64\_logs\2019-11-15T10_13_58_358Z-debug.log
The issue got resolved by giving correct API token. That was authentication issue.
Is there any other log file? What you have posted, doesn't give any hint as to what is going wrong. Have you looked in $SONARQUBE_HOME/logs/web.log? That should point you in the right direction.

java.lang.IllegalStateException: Project home must be an existing directory

Please help me How to resolve this issue -
Getting Error while Sending Code from Jenkins to SonarQube.
git rev-list --no-walk 0070e5865725fdacc46d8444385e337eb9e6c4c8 # timeout=10
Unpacking https://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/4.2.0.1873/sonar-scanner-cli-4.2.0.1873.zip to /jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/ADOP_Sonar on 00a4ea1e
[Generali] $ /jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/ADOP_Sonar/bin/sonar-scanner -X -Dsonar.host.url=https://alm.accenture.com/sonar -Dsonar.language=java "-Dsonar.projectName=Connected Vehicle Platform Sonar" -Dsonar.sourceEncoding=UTF-8 -Dsonar.projectKey=adop:CVPIFBNE:cvp -Dsonar.java.binaries=target/classes -Dsonar.sources=src/main/java -Dsonar.projectBaseDir=C:/Jenkins/workspace/Generali
14:30:02.030 INFO: Scanner configuration file: /jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/ADOP_Sonar/conf/sonar-scanner.properties
14:30:02.038 INFO: Project root configuration file: NONE
14:30:02.147 INFO: SonarQube Scanner 4.2.0.1873
14:30:02.147 INFO: Java 9 Oracle Corporation (64-bit)
14:30:02.147 INFO: Linux 3.10.0-957.12.2.el7.x86_64 amd64
14:30:02.147 INFO: SONAR_SCANNER_OPTS=-Dsonar.login=04bcf7a2d5c6a5d44d9763fd840e723cbc85bb7e
14:30:02.641 DEBUG: keyStore is :
14:30:02.642 DEBUG: keyStore type is : pkcs12
14:30:02.642 DEBUG: keyStore provider is :
14:30:02.642 DEBUG: init keystore
14:30:02.643 DEBUG: init keymanager of type SunX509
14:30:02.897 DEBUG: Create: /root/.sonar/cache
14:30:02.899 INFO: User cache: /root/.sonar/cache
14:30:02.899 DEBUG: Create: /root/.sonar/cache/_tmp
14:30:02.904 DEBUG: Extract sonar-scanner-api-batch in temp...
14:30:02.911 DEBUG: Get bootstrap index...
14:30:02.911 DEBUG: Download: https://alm.accenture.com/sonar/batch/index
14:30:03.208 DEBUG: Get bootstrap completed
14:30:03.215 DEBUG: Download https://alm.accenture.com/sonar/batch/file?name=scanner-enterprise-7.9.1-all.jar to /root/.sonar/cache/_tmp/fileCache9893797395313049837.tmp
14:30:05.187 DEBUG: Create isolated classloader...
14:30:05.215 DEBUG: Start temp cleaning...
14:30:05.221 DEBUG: Temp cleaning done
14:30:05.222 DEBUG: Execution getVersion
14:30:05.237 INFO: SonarQube server 7.9.1
14:30:05.238 INFO: Default locale: "en", source code encoding: "UTF-8"
14:30:05.240 INFO: ------------------------------------------------------------------------
14:30:05.240 INFO: EXECUTION FAILURE
14:30:05.240 INFO: ------------------------------------------------------------------------
14:30:05.241 INFO: Total time: 3.298s
14:30:05.291 INFO: Final Memory: 3M/14M
14:30:05.291 INFO: ------------------------------------------------------------------------
14:30:05.291 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Project home must be an existing directory: /C:/Jenkins/workspace/Generali/C:/Jenkins/workspace/Generali
at org.sonarsource.scanner.api.Dirs.initProjectDirs(Dirs.java:51)
at org.sonarsource.scanner.api.Dirs.init(Dirs.java:41)
at org.sonarsource.scanner.api.EmbeddedScanner.initAnalysisProperties(EmbeddedScanner.java:158)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeeded?
ERROR: SonarQube scanner exited with non-zero code: 1
Finished: FAILURE
I had a similar issue:
ERROR: Error during SonarQube Scanner execution
ERROR: Project home must be an existing directory: C:\Windows\system32\config\...blah blah blah
I initially set my sonar.projectBaseDir by copying and pasting the path from File Explorer. The issue was Windows uses backslashes for paths. Once I switched them to forward slashes, the issue was fixed for me.

Yarn install keeps failing

I'm kinda at my wits end here. I'm working on a localhost and every time I try to start the server it tells me to run yarn install, but when I try and run yarn install I get an error like this:
20 warnings and 6 errors generated.
20 warnings and 6 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/robertgervais/projects/bike_index/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command \"/usr/local/Cellar/node/12.1.0/bin/node\" \"/Users/robertgervais/projects/bike_index/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64\" \"--napi_version=4\" \"--node_abi_napi=napi\"
gyp ERR! cwd /Users/robertgervais/projects/bike_index/node_modules/fsevents
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/12.1.0/bin/node /Users/robertgervais/projects/bike_index/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/robertgervais/projects/bike_index/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:196:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1000:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/12.1.0/bin/node\" \"/Users/robertgervais/projects/bike_index/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/robertgervais/projects/bike_index/node_modules/fsevents
node-pre-gyp ERR! node -v v12.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
make: *** [Release/obj.target/fse/fsevents.o] Error 1
Failed to execute '/usr/local/Cellar/node/12.1.0/bin/node /Users/robertgervais/projects/bike_index/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/robertgervais/projects/bike_index/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command \"/usr/local/Cellar/node/12.1.0/bin/node\" \"/Users/robertgervais/projects/bike_index/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/robertgervais/projects/bike_index/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64\" \"--napi_version=4\" \"--node_abi_napi=napi\"
gyp ERR! cwd /Users/robertgervais/projects/bike_index/node_modules/fsevents
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v3.8.0
I've sort of been scouring stack for a while now trying to find a fix, but I'm not having any luck.
Please point me in the right direction
I just had the same issue. It appears that a remote url for the version of fsevents that my yarn.lock file was referencing was giving a 404. I was able to fix this by running yarn upgrade-interactive and updating all my packages to the latest version. This updated fsevent to 1.2.9 and fixed the error.
I noticed I also had the following in my console before the error message you gave:
$ yarn
yarn install v1.15.2
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
[1/2] ⢀ fsevents
warning Error running install script for optional dependency: "/my_project_folder/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /my_project_folder/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.10.3
node-pre-gyp info using node#12.1.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for \"/my_project_folder/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v72-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v72-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v72-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for fsevents#1.2.7 and node#12.1.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v72-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for fsevents#1.2.7 and node#12.1.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
the following command will help you to get rid of the problem
yarn cache clean && yarn upgrade && yarn

React-native package manager issues

I'm using the following tutorial online:
https://facebook.github.io/react-native/docs/integration-with-existing-apps.html
It uses the below project:
https://github.com/JoelMarcey/swift-2048
I'm trying to integrate my existing iPhone and android app with React Native. I used the sample on the site with swift and i'm unable to get npm start working. I get the below error:
[4:38:11 PM] <START> Building Dependency Graph
[4:38:11 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot
React packager ready.
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
ERROR Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
at exports._errnoException (util.js:953:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.2.0/bin/node" "/Users/user/.nvm/versions/node/v6.2.0/bin/npm" "start"
npm ERR! node v6.2.0
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! swift-2048#0.0.1 start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swift-2048#0.0.1 start script 'node node_modules/react-native/local-cli/cli.js start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the swift-2048 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/react-native/local-cli/cli.js start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs swift-2048
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls swift-2048
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
this is the step where it says npm start. Is there anything I can deduce from the above? Any help appreciated as I'm really stuck. My versions are:
react-native-cli: 1.0.0
react-native: 0.26.1
node: 6.2.0
I'm also using nvm if that counts.
Do you have watchman installed? (see here for a list of macOS dependencies).
You can install it with brew install watchman (assuming you have homebrew).

Resources