MUP : npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0


#1

Hello All,

Getting error : npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0 while running MUP.

Thanks in advance!


#2

Is it actually stopping it from working?

It’s just a warning, which you can ignore


#3
mup deploy --verbose
Building App Bundle Locally
app/client/sequence-theme.modern-slide-in.css: warn: there are some @import rules those are not taking effect as they are required to be in the beginning of the file
                                           
Started TaskList: Pushing Meteor App
[xx.xxx.xxx.xxx] - Pushing Meteor App Bundle to the Server
[xx.xxx.xxx.xxx] - Pushing Meteor App Bundle to the Server: SUCCESS
[xx.xxx.xxx.xxx] - Prepare Bundle
node-8.4.0-base: Pulling from abernix/meteord
Digest: sha256:04f44cf999da383d11de77027ced8b70818222c9890a405ce10803af3ee5a642
Status: Image is up to date for abernix/meteord:node-8.4.0-base
Finished Extracting
Creating Dockerfile
Finished creating Dockerfile
Building image
Sending build context to Docker daemon 244.4 MB
Step 1/7 : FROM abernix/meteord:node-8.4.0-base
# Executing 1 build trigger...
Step 1/1 : ENV NODE_VERSION ${NODE_VERSION:-8.4.0}
 ---> Using cache
 ---> b2de32837423
Step 2/7 : RUN mkdir /built_app || true
 ---> Using cache
 ---> c0047ab31499
Step 3/7 : ENV ROOT_URL http://xyz.com
 ---> Using cache
 ---> 14a1d6d9a4f3
Step 4/7 : ENV MONGO_URL mongodb://mongodb:27017/xyz
 ---> Using cache
 ---> ddb7167c0ab0
Step 5/7 : ENV PORT 3048
 ---> Using cache
 ---> 700fc532843f
Step 6/7 : COPY ./ /built_app
 ---> 1d7a2d294eff
Removing intermediate container aa1bd6244450
Step 7/7 : RUN cd  /built_app/programs/server &&     npm install --unsafe-perm
 ---> Running in c20744d0caef
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!

> fibers@1.0.15 install /built_app/programs/server/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory '/built_app/programs/server/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In function 'v8::Handle<v8::String> uni::NewLatin1String(v8::Isolate*, const char*)':
../src/fibers.cc:122:64: warning: 'static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:2624): Use maybe version [-Wdeprecated-declarations]
   return String::NewFromOneByte(isolate, (const uint8_t*)string);
                                                                ^
../src/fibers.cc: In function 'v8::Handle<v8::String> uni::NewLatin1Symbol(v8::Isolate*, const char*)':
../src/fibers.cc:126:64: warning: 'static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:2624): Use maybe version [-Wdeprecated-declarations]
   return String::NewFromOneByte(isolate, (const uint8_t*)string);
                                                                ^
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::New(const Arguments&)':
../src/fibers.cc:433:99: warning: 'v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3787): Use maybe version [-Wdeprecated-declarations]
     return uni::Return(uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction()->NewInstance(1, argv), args);
                                                                                                   ^
../src/fibers.cc: In static member function 'static void Fiber::RunFiber(void**)':
../src/fibers.cc:621:14: warning: 'v8::TryCatch::TryCatch()' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:8157): Use isolate version [-Wdeprecated-declarations]
     TryCatch try_catch;
              ^
../src/fibers.cc: In static member function 'static void Fiber::SetPoolSize(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)':
../src/fibers.cc:741:43: warning: 'v8::Local<v8::Number> v8::Value::ToNumber() const' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:9578): Use maybe version [-Wdeprecated-declarations]
    Coroutine::pool_size = value->ToNumber()->Value();
                                           ^
../src/fibers.cc: In static member function 'static void Fiber::Init(v8::Handle<v8::Object>)':
../src/fibers.cc:793:72: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3120): Use maybe version [-Wdeprecated-declarations]
    fn->SetAccessor(uni::NewLatin1Symbol(isolate, "current"), GetCurrent);
                                                                        ^
../src/fibers.cc:794:87: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3120): Use maybe version [-Wdeprecated-declarations]
    fn->SetAccessor(uni::NewLatin1Symbol(isolate, "poolSize"), GetPoolSize, SetPoolSize);
                                                                                       ^
../src/fibers.cc:795:84: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3120): Use maybe version [-Wdeprecated-declarations]
    fn->SetAccessor(uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated);
                                                                                    ^
  CXX(target) Release/obj.target/fibers/src/coroutine.o
  CC(target) Release/obj.target/fibers/src/libcoro/coro.o
  SOLINK_MODULE(target) Release/obj.target/fibers.node
  COPY Release/fibers.node
make: Leaving directory '/built_app/programs/server/node_modules/fibers/build'
Installed in `/built_app/programs/server/node_modules/fibers/bin/linux-x64-57/fibers.node`

> meteor-dev-bundle@0.0.0 install /built_app/programs/server
> node npm-rebuild.js

npm WARN lifecycle npm is using /opt/nodejs/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> bcrypt@1.0.3 install /built_app/programs/server/npm/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

npm ERR! file sh
npm ERR! path sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn sh
npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn sh ENOENT
npm ERR! 
npm ERR! Failed at the bcrypt@1.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! code ELIFECYCLE
npm ERR! errno -2
npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status -2
npm ERR! 
npm ERR! Failed at the bcrypt@1.0.3 install 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!     /root/.npm/_logs/2018-06-12T06_37_11_847Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the meteor-dev-bundle@0.0.0 install 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!     /root/.npm/_logs/2018-06-12T06_37_11_886Z-debug.log
The command '/bin/sh -c cd  /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1
[xx.xxx.xxx.xxx] x Prepare Bundle: FAILED
	
	      ------------------------------------STDERR------------------------------------
	      The command '/bin/sh -c cd  /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1
	
	      ------------------------------------STDOUT------------------------------------
	      c member function 'static void Fiber::SetPoolSize(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)':
	../src/fibers.cc:741:43: warning: 'v8::Local<v8::Number> v8::Value::ToNumber() const' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:9578): Use maybe version [-Wdeprecated-declarations]
	    Coroutine::pool_size = value->ToNumber()->Value();
	                                           ^
	../src/fibers.cc: In static member function 'static void Fiber::Init(v8::Handle<v8::Object>)':
	../src/fibers.cc:793:72: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3120): Use maybe version [-Wdeprecated-declarations]
	    fn->SetAccessor(uni::NewLatin1Symbol(isolate, "current"), GetCurrent);
	                                                                        ^
	../src/fibers.cc:794:87: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3120): Use maybe version [-Wdeprecated-declarations]
	    fn->SetAccessor(uni::NewLatin1Symbol(isolate, "poolSize"), GetPoolSize, SetPoolSize);
	                                                                                       ^
	../src/fibers.cc:795:84: warning: 'bool v8::Object::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)' is deprecated (declared at /root/.node-gyp/8.4.0/include/node/v8.h:3120): Use maybe version [-Wdeprecated-declarations]
	    fn->SetAccessor(uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated);
	                                                                                    ^
	  CXX(target) Release/obj.target/fibers/src/coroutine.o
	  CC(target) Release/obj.target/fibers/src/libcoro/coro.o
	  SOLINK_MODULE(target) Release/obj.target/fibers.node
	  COPY Release/fibers.node
	make: Leaving directory '/built_app/programs/server/node_modules/fibers/build'
	Installed in `/built_app/programs/server/node_modules/fibers/bin/linux-x64-57/fibers.node`
	
	> meteor-dev-bundle@0.0.0 install /built_app/programs/server
	> node npm-rebuild.js
	
	npm WARN lifecycle npm is using /opt/nodejs/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
	
	> bcrypt@1.0.3 install /built_app/programs/server/npm/node_modules/bcrypt
	> node-pre-gyp install --fallback-to-build
	
	npm ERR! file sh
	npm ERR! path sh
	npm ERR! code ELIFECYCLE
	npm ERR! errno ENOENT
	npm ERR! syscall spawn sh
	npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
	npm ERR! spawn sh ENOENT
	npm ERR! 
	npm ERR! Failed at the bcrypt@1.0.3 install script.
	npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
	npm ERR! code ELIFECYCLE
	npm ERR! errno -2
	npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
	npm ERR! Exit status -2
	npm ERR! 
	npm ERR! Failed at the bcrypt@1.0.3 install 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!     /root/.npm/_logs/2018-06-12T06_37_11_847Z-debug.log
	npm ERR! code ELIFECYCLE
	npm ERR! errno 1
	npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
	npm ERR! Exit status 1
	npm ERR! 
	npm ERR! Failed at the meteor-dev-bundle@0.0.0 install 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!     /root/.npm/_logs/2018-06-12T06_37_11_886Z-debug.log
	
	      ------------------------------------------------------------------------------
	      

Unable to deploy website because of this error.


#4

It’s weird but I updated meteor and npm, now its working all fine.


#5

Glad it’s working!

Just want to point out that the error in your error message is in attempting to compile bcrypt, not to do with the lockfile version


#6

oh. Okay thank you for pointing it out.